Re: Cryptography

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



>1. We created CryptAcquireContext with a container name
>
>It is working fine in Windows XP and Windows 2000. It is not working in
>Windows NT.

It's likely that your code is like this:

CryptAcquireContext(&hProv,NULL,NULL,PROV_RSA_FULL,CRYPT_VERIFYCONTEXT);

The issue is generally the one that different OS's have different
default providers.

Be specific about which provider you want - try specifying MS_DEF_PROV
when calling CryptAcquireContext, instead of NULL.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: The handle is invalid error from CryptAcquireContext
    ... I am having the exact same ... fine except on one Windows 2003 Server where CryptAcquireContext ... > Windows 2003 Server, they say, after installing some of the Windows ...
    (microsoft.public.platformsdk.security)
  • Re: CryptAcquireContext Fails in Windows 98
    ... CryptAcquireContext is failing there. ... The component is developed in Windows 2000 and is functional. ... > When i use the same component in Windows 98 the CriptoAPI function "CryptAcquireContext" fails??? ...
    (microsoft.public.platformsdk.security)
  • testing smart card minidriver
    ... when testing smart card minidriver in windows 7, ... CryptAcquireContext - CRYPT_DELETEKEYSET ... in windows xp, it always passed. ...
    (microsoft.public.platformsdk.security)
  • testing smart card minidriver
    ... when testing smart card minidriver in windows 7, ... CryptAcquireContext - CRYPT_DELETEKEYSET ... in windows xp, it always passed. ...
    (microsoft.public.windows.vista.security)
  • testing smart card minidriver
    ... when testing smart card minidriver in windows 7, ... CryptAcquireContext - CRYPT_DELETEKEYSET ... in windows xp, it always passed. ...
    (microsoft.public.development.device.drivers)