微软已经从Vista和server 2008开始引入密码学下一代(CNG)。但我的问题是要知道微软是否支持Windows 7和Server 2008中的旧版本MS CAPI(比如在Windows 2003和Windows XP中)。cryptoapi windows 7支持
感谢
拉吉
微软已经从Vista和server 2008开始引入密码学下一代(CNG)。但我的问题是要知道微软是否支持Windows 7和Server 2008中的旧版本MS CAPI(比如在Windows 2003和Windows XP中)。cryptoapi windows 7支持
感谢
拉吉
你的意思是,如果Windows 7和Windows Server 2008中的CryptoAPI是那么是旧版本的CryptoAPI的向后兼容。
所有新的CNG功能当然不是。
是的。 Windows 7提供了两种API:CNG和CAPI。
然而,只是verfy方面尝试:
#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);
}
}
我相信,Windows 7和Server 2008中得到了CNG这是与旧版本向后兼容 - CryptoAPI的;我的问题是windows-7是否支持旧的cryptoAPI? – Raj 2009-10-07 14:33:10
如上所述。 Win7中的CryptoAPI与WinXP中的cryptoAPI等向后兼容。Win7s中的CNG CryptoAPI不能与WinXP中的CryptoAPI等向后兼容,因为在那些操作系统CryptoAPI中没有CNG。 – 2009-10-07 14:47:48