Re: Decrypting RSA encrypted symmetric key using crypto API

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



Hi,

"Frank Perry" <FrankPerry@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:91EC029E-B9FA-4819-9BDC-70D7E7321917@xxxxxxxxxxxxxxxx
Howdy,

Forgive me being vague but it was a year ago I worked with this stuff and
I
don't have my references here. But, I believe there are a couple of
packages
from Microsoft and 3DES may not be in the basic one.
you seem to be right. I tried to create a 3DES key using the CryptKeyGen
function and this also failed. Using the RC2 or RC5 algorithm works fine.
I've to check this out.


One other thing to keep in mind is that if the original was encrypted on a
W2K system, the default key size will be different from XP and you may
need
to specify the key size when you decrypt the data. That gave me a lot of
trouble until I figured it out.

Hope that helps.

Yeah, thanks. Now I know what I have to look for.

Best regards
Martin


--
Frank Perry
LavaLeaf Software


"Martin Horst" wrote:

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

  • Decrypting RSA encrypted symmetric key using crypto API
    ... 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 ...
    (microsoft.public.vc.mfc)
  • decrypt using public key only with RSA
    ... I have someone who has given me a string that was encrypted with their RSA ... private key. ... I tried to import their RSA public key and decrypt their strng ...
    (microsoft.public.dotnet.security)