首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

如何用CryptGetUserKey获得会话密钥

2013-12-06 
怎么用CryptGetUserKey获得会话密钥怎么用CryptGetUserKey获得密钥容器里的会话密钥?MSDN的描述:Additiona

怎么用CryptGetUserKey获得会话密钥
怎么用CryptGetUserKey获得密钥容器里的会话密钥?


MSDN的描述:
Additionally, some providers allow access to other user-specific keys through this function. For details, see the documentation on the specific provider.

不知道WIN7上那个CSP提供了这个功能?非WINDOWS自带的CSP就不需要了。

怎么让导入到密钥容器里的会话密钥永久保存在密钥容器里?
CryptDestroyKey是这样描述的:
If the handle refers to a session key, or to a public key that has been imported into the cryptographic service provider (CSP) through CryptImportKey, this function destroys the key and frees the memory that the key used. Many CSPs overwrite the memory where the key was held before freeing it. However, the underlying public/private key pair is not destroyed by this function. Only the handle is destroyed. Windows 加密解密 CryptAPI
[解决办法]
CryptGetUserKey()获取到的交换密钥句柄 这个句柄做加密可以 但是做解密出错为什么 80090020 内部错误 shit

热点排行