Re: _CRYPT problem between Win2000 and XP

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

From: Stefan Wuebbe (stefan.wuebbe_at_gmx.de)
Date: 11/29/04


Date: Mon, 29 Nov 2004 08:24:24 +0100


> I also changed the line in the wincrypt.h file to...
> #DEFINE dsMS_DEF_PROV_A "Microsoft Enhanced Cryptographic Provider v1.0"

You're right, different Crypto Provder versions are usually causing
that effect - did you make sure that the constant above is actually
assigned to your crypto object's .cProvidername property at
runtime?

hth
-Stefan

"Chrispy" <Chrispy@discussions.microsoft.com> schrieb im Newsbeitrag
news:40E2E7CC-8673-4A29-97D2-121F55CC9F05@microsoft.com...
> I've got the same problem as other users have found when trying to use the
> _crypt.vcx class and getting different encrypted strings between the 2OS's.
>
> On the Win2K machine , I had 2 references. One to the rsabase.dll in the
> Microsoft Base Cryptographic Provider v1.0 key and the other to the
> rsaenh.dll file in the Microsoft Enhanced Cryptographic Provider v1.0 key
> So I changed the Base one to also point to the rsaenh.dll file
>
> I also changed the line in the wincrypt.h file to...
> #DEFINE dsMS_DEF_PROV_A "Microsoft Enhanced Cryptographic Provider v1.0"
>
> After compiling with these changes it still did not work.
>
> I noticed the dll on the Win2K machine (SP4), was older than the one on the
> XP Home machine (SP1), so I tried to install the newer one on the 2000
> machine, but Windows would not let this file get updated.
>
> Does anyone have any ideas on why they don't encrypt to the same result?
>
> With Thanks,
> Chris



Relevant Pages

  • Re: TripleDESCryptoServiceProvider on Win2k
    ... RSA_PROV_FULL supported cryptographic algorithms ... > The TripleDESCryptoServiceProvider calls the native Crypto API to implement TripleDES. ... > the Microsoft Base Cryptographic Provider. ...
    (microsoft.public.dotnet.security)
  • RE: can you use 3DES encryption algorithm on 9x Systems?
    ... Did you install the high crypto extension? ... "Alvaro" wrote: ... > Microsoft Enhance Cryptographic Provider and everything works fine in Windows ...
    (microsoft.public.platformsdk.security)