Decrypting RSA encrypted symmetric key using crypto API
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Hi,
I'm trying to decrypt a 3DES symmetric key wich was encrypted by a
RSA public key using the PKCS#1 padding. I'm using the CryptDecrypt
function which should support (MSDN) the decryption of RSA encrypted
keys. But when I call this function all I get is an unsupported function
error.
I'm using Windows XP with service pack 2.
It would be greate if someone can give me an example for this or an example
using the CryptImportKey function.
Thanks in advance
Martin
.
Relevant Pages
- Re: Padding and block ciphers
... while giving to each padding byte the value of the padding length ... decrypt with the wrong key, if the padding that you had to apply to the ... lets say that the block cyper encrypts bytes. ... key produces a random mapping. ... (sci.crypt) - Re: Padding and block ciphers
... the key incorrect because the padding is incorrect. ... How would an attacker know if the padding is incorrect? ... and you only had to decrypt the last block to ... (sci.crypt) - Re: Padding and block ciphers
... is padding and what isn't (consider what might happen if the padding ... and you only had to decrypt the last block to ... Yes but the attacker does not know if there even is any padding to begin ... So an incorrect key could in theory create what looks like padding ... (sci.crypt) - Re: Data decryption issue
... Now I am trying to run the decrypt, and am getting an error that I can't ... inputBuffer, Int32 inputOffset, Int32 inputCount, Byte& outputBuffer, ... So, I have extra padding in place, but I don't know if the padding mode ... PKCS7 and ISO10126, I can encrypt just fine, but the decrypt function ... (microsoft.public.dotnet.languages.csharp) - Re: CryptDecrypt RSA OAEP
... If it was possible to have a CSP "decrypt" an RSA-encrypted message ... without interpreting padding, it would be a critical security breach. ... on the key and, ultimately, uncover "d", the private key. ... (microsoft.public.platformsdk.security) |
|