1. 加密和解密
可以用对称加密,即用Session Key。
先用一个字符串做密码,然后对他进行hash运算,通过hash结果得到Session Key。然后用Session Key进行加密、解密。Session Key可以导入、到处。
2. 签名
需要用到公钥和私钥。用私钥签名,用公钥验证。
会用到Message协助签名,其中Message操作有两组函数,Low-Level Message Functions和Simplified Message Functions。
The CryptoAPI message functions adhere to RSA PKCS #7 Cryptographic Message Syntax (CMS) Standard published by RSA Laboratories, a division of RSA Data Security, Inc.
转载于:https://www.cnblogs.com/fanzi2009/archive/2009/09/04/1560521.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)