Microsoft Enhanced Cryptographic Provider question
-
Hi all, I have used this csp when I initiate my decryption:
CryptAcquireContext(&hProv,NULL,MS_ENHANCED_PROV,PROV_RSA_FULL,0);
I have also checked http://msdn.microsoft.com/en-us/library/aa386986(VS.85).aspx[^] and have verified that 3des is supported. Is it possible that http://www.codeproject.com/KB/web-security/Cryptography_MD5_TriDES.aspx?display=Print[^] may have a different output from a c++ version of the code? Can anyone give me a c# encryption and an equal c++ decryption examples? Thanks, Jayjay
-
Hi all, I have used this csp when I initiate my decryption:
CryptAcquireContext(&hProv,NULL,MS_ENHANCED_PROV,PROV_RSA_FULL,0);
I have also checked http://msdn.microsoft.com/en-us/library/aa386986(VS.85).aspx[^] and have verified that 3des is supported. Is it possible that http://www.codeproject.com/KB/web-security/Cryptography_MD5_TriDES.aspx?display=Print[^] may have a different output from a c++ version of the code? Can anyone give me a c# encryption and an equal c++ decryption examples? Thanks, Jayjay
monsieur_jj wrote:
Is it possible that http://www.codeproject.com/KB/web-security/Cryptography\_MD5\_TriDES.aspx?display=Print\[^\] may have a different output from a c++ version of the code?
any implementation of 3DES must give the same results as any other implementation, given the same inputs.