<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/mars208" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/mars208" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 08 Oct 2008 20:16:00 GMT</lastBuildDate><title>磁针石's Blog</title><link>http://blog.csdn.net/mars208/</link><item><title>Eclipse常用配置方法手册</title><link>http://blog.csdn.net/mars208/archive/2008/10/08/3035710.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/3035710.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/3035710.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3035710</trackback:ping><description>Eclipse引入插件方法1. 将插件解压放入Eclipse根目录，例如放入目录为：site-1.4.5\eclipse&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/3035710.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 09 Oct 2008 04:16:00 +0800</pubDate><author>磁针石</author><comments>http://blog.csdn.net/mars208/archive/2008/10/08/3035710.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2008/10/08/3035710.aspx</guid><dc:creator>磁针石</dc:creator></item><item><title>◆redhat中gcc安装</title><link>http://blog.csdn.net/mars208/archive/2005/10/28/518527.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/518527.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/518527.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=518527</trackback:ping><description>redhat中gcc安装安装之前，系统中必须要有cc或者gcc等编译器，并且是可用的，或者用环境变量CC指定系统上的编译器。如果系统上没有编译器，不能安装源代码形式的GCC 3.4.0。如果是这种情况，可以在网上找一个与你系统相适应的如RPM等二进制形式的GCC软件包来安装使用。&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/518527.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 29 Oct 2005 01:26:00 +0800</pubDate><author>磁针石</author><comments>http://blog.csdn.net/mars208/archive/2005/10/28/518527.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/10/28/518527.aspx</guid><dc:creator>磁针石</dc:creator></item><item><title>◆CAPI读取证书总结</title><link>http://blog.csdn.net/mars208/archive/2005/09/14/480832.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/480832.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/480832.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=480832</trackback:ping><description>系统证书库中存在的证书按下面的方法打开
1.CryptAcquireContext获取HCRYPTPROV
2.CertOpenStore得到证书库句柄HCERTSTORE
3.CertFindCertificateInStore得到PCCERT_CONTEXT
如果X509格式的文件证书
1.首先读入文件二进制byte
2.CertCreateCertificateContext获取PCCERT_CONTEXT&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/480832.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 15 Sep 2005 02:05:00 +0800</pubDate><author>磁针石</author><comments>http://blog.csdn.net/mars208/archive/2005/09/14/480832.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/09/14/480832.aspx</guid><dc:creator>磁针石</dc:creator></item><item><title>强制性访问控制MAC</title><link>http://blog.csdn.net/mars208/archive/2005/09/14/480828.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/480828.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/480828.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=480828</trackback:ping><description>基于格的访问控制，每个用户及文件都被赋于一个访问级别，有个mac访问控制表的&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/480828.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 15 Sep 2005 01:59:00 +0800</pubDate><author>磁针石</author><comments>http://blog.csdn.net/mars208/archive/2005/09/14/480828.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/09/14/480828.aspx</guid><dc:creator>磁针石</dc:creator></item><item><title>关于X.509V3公钥证书的扩展项</title><link>http://blog.csdn.net/mars208/archive/2005/09/14/480820.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/480820.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/480820.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=480820</trackback:ping><description>一般人对证书的其它各项比较熟悉，但对它的扩展项却比较陌生一些。那么这些扩展项都有什么作用呢？事实上，这些扩展项共有如下几类：
&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/480820.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 15 Sep 2005 01:51:00 +0800</pubDate><author>磁针石</author><comments>http://blog.csdn.net/mars208/archive/2005/09/14/480820.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/09/14/480820.aspx</guid><dc:creator>磁针石</dc:creator></item><item><title>利用ENGINE替换OPENSSL中的加解密算法</title><link>http://blog.csdn.net/mars208/archive/2005/08/12/452263.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/452263.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/452263.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=452263</trackback:ping><description>利用ENGINE替换OPENSSL中的加解密算法



一：ENGINE的目的：

ENGINE是OPENSSL预留的加载第三方加密库，主要包括了动态库加载的代码和加密函数指针管理的一系列接口。如果要使用Engine（假设你已经加载上该Engine了），那么首先要Load该Engine(比如ENGINE_load_XXXX)，然后选择要使用的算法或者使用支持的所有加密算法（有相关函数）。这样你的应用程序在调用加解密算法时，它就会指向你加载的动态库里的加解密算法，而不是原先的OPENSSL的libeay32.dll库里的加解密算法。

二：ENGINE原理：

使用你自己编译的加解密动态库里的函数的指针或硬件接口指针来替换OPENSSL

中默认的加解密函数，类似于HOOK，这样实现动态加载第三方密码库；


三：ENGINE操作流程：

例如替换RSA：

&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/452263.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 12 Aug 2005 21:42:00 +0800</pubDate><author>rekcah</author><comments>http://blog.csdn.net/mars208/archive/2005/08/12/452263.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/08/12/452263.aspx</guid><dc:creator>rekcah</dc:creator></item><item><title>大数运算和RSA算法</title><link>http://blog.csdn.net/mars208/archive/2005/08/11/451303.aspx</link><wfw:comment>http://blog.csdn.net/mars208/comments/451303.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/mars208/comments/commentRss/451303.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=451303</trackback:ping><description>RSA加密是依赖大数运算，而且主流RSA算法都建立在512位到1024位的。而现有的计算机数据类型最大的也就是64（int64),于是自己编了一个大数类CXWord来实现1024位的大数运算。
基本思想就是用DWORD[32]的数组来存储，具体实现如下。&lt;img src =&quot;http://blog.csdn.net/mars208/aggbug/451303.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 12 Aug 2005 01:01:00 +0800</pubDate><author>rekcah</author><comments>http://blog.csdn.net/mars208/archive/2005/08/11/451303.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/mars208/archive/2005/08/11/451303.aspx</guid><dc:creator>rekcah</dc:creator></item></channel></rss>