RSA Full Encryption in Windows CryptoAPI
-
I am writing an application that uses the CrytpoAPI. In the CryptAcquireContext function call, I request the PROV_RSA_FULL provider. In my Windows 2000 development machine, it works, but on many other systems, I get the error for invalid keyset, meaning that a Cryptographic provider supporting RSA_FULL does not exist. Windows 98 does not work Windows XP clean install does not work. Windows XP with Office XP DOES work Windows 2000 clean does not work Windows 2000 SP 3 does not work Windows 2000 128-bit encryption does not work Windows 2000 with Office 97 does not work IE 6 SP 1 does not work All of the above should have the MS Base cryptographic provider How the fudge do I get RSA_FULL CryptoAPI support installed on a system?
-
I am writing an application that uses the CrytpoAPI. In the CryptAcquireContext function call, I request the PROV_RSA_FULL provider. In my Windows 2000 development machine, it works, but on many other systems, I get the error for invalid keyset, meaning that a Cryptographic provider supporting RSA_FULL does not exist. Windows 98 does not work Windows XP clean install does not work. Windows XP with Office XP DOES work Windows 2000 clean does not work Windows 2000 SP 3 does not work Windows 2000 128-bit encryption does not work Windows 2000 with Office 97 does not work IE 6 SP 1 does not work All of the above should have the MS Base cryptographic provider How the fudge do I get RSA_FULL CryptoAPI support installed on a system?
If
CryptAcquireContext()
fails andGetLastError
isNTE_BAD_KEYSET
, you need to callCryptAcquireContext()
again with theCRYPT_NEWKEYSET
flag. This should only have to be done once per machine. --Mike-- Latest blog entry: *drool* (Alyson) [May 10] Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber "You have Erica on the brain" - Jon Sagara to me