微軟已經從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