문제

Microsoft는 차세대 암호화를 소개했습니다 (CNG) Vista 및 Server 2008에서. 그러나 내 질문은 아는 것입니다 Microsoft가 기존을 지원하는지 여부 MS Capi Windows 7 및 Server 2008의 (예 : Windows 2003 및 Windows XP에서).

감사

주권

도움이 되었습니까?

해결책

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