RSA/RC2 key exchange
From: Kipp Hawley (kh@traxonline.com)
Date: 10/29/02
- Next message: mark: "Fail to call COM object into ASP.NET"
- Previous message: Frank Hoover: "Importing Keys from PGP"
- Next in thread: Kipp Hawley: "Re: RSA/RC2 key exchange"
- Reply: Kipp Hawley: "Re: RSA/RC2 key exchange"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Kipp Hawley" <kh@traxonline.com> Date: Mon, 28 Oct 2002 17:59:59 -0800
Hi again...
Okay, I give up - what's the answer? What is the .NET equivalent of the
CryptoAPI call CryptImportKey()?
I'm trying to exchange encrypted data between an ActiveX object and a .NET
web service. The object fetches the service's RSA public key, then uses it
to encrypt its own RC2 session key by calling
CCryptRandomKey.ExportSimpleBlob(). Finally it sends its data to the web
service along with the key blob and its IV.
On the .NET side, I init the RSA cryptoprovider then try to use it to
decrypt the session key (which begins at offset 12 in the session key blob),
but no matter what I do it always throws a "Bad Data" exception. The
documentation on the .NET encryption keys is as thin as gossamer, so there's
no help there. I've tried giving it the whole thing, breaking it up into 16
byte blocks, 4 byte blocks, always the same rc.
How does Microsoft recommend decrypting session keys sent as keyblobs? Is
there a better way to exchange keys with non-.NET platforms?
Thanks in advance for any help,
Kipp Hawley
Trax Softworks, Inc.
- Next message: mark: "Fail to call COM object into ASP.NET"
- Previous message: Frank Hoover: "Importing Keys from PGP"
- Next in thread: Kipp Hawley: "Re: RSA/RC2 key exchange"
- Reply: Kipp Hawley: "Re: RSA/RC2 key exchange"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|