微软推出下一代加密技术 (压缩天然气) 从 Vista 和 Server 2008 开始。但我的问题是要知道 微软是否支持旧版 多发性硬化症API (例如说。在 Windows 2003 和 Windows XP 中) 在 Windows 7 和 Server 2008 中.

谢谢

拉杰

有帮助吗?

解决方案

您的意思是如果 Windows 7 和 Windows Server 2008 CryptoAPI 向后兼容旧版本的 CryptoAPI 那么是的。

当然不是所有新的 CNG 功能。

其他提示

是的。Windows 7 提供这两种 API:CNG 和 CAPI。

尽管如此,只需尝试验证上下文:

#include <Wincrypt.h>
#include <stdio.h>

int main()
{
    HCRYPTPROV hCryptProv = NULL;  
    if(CryptAcquireContext(&hCryptProv,NULL,NULL,PROV_RSA_FULL,CRYPT_VERIFYCONTEXT))                     
    {
        printf("CryptoAPI working\n\n");
        exit(0);    
    }else
    {
        printf("Error 0x%.8x",GetLastError());
        exit(1);
    }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top