md5 hashing fails one 1 computer out a hundred
-
hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight
-
hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight
CryptAcquireContext If the function succeeds, the function returns nonzero (TRUE). If the function fails, it returns zero (FALSE). For extended error information, call GetLastError. Also: CryptAcquireContext() use and troubleshooting Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins."
-
hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight
That will fail if you've never used the CryptoAPI on the machine (or you've cleared out the key store). If the last error is
NTE_BAD_KEYSET
, callCryptAcquireContext()
again with theCRYPT_NEWKEYSET
flag. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ