Hi all,

I'm new to openSSL, and have what I hope is a simple question.  I've
searched the list archives for an answer but didn't immediately see anything
appropriate.

Given a Microsoft CryptoAPI private key blob, what is the easiest way to
convert it to an OpenSSL EVP_PKEY structure?

If it helps any, the rough definition of a CryptoAPI private key blob is as
follows (so I can at least pull the individual elements out and manipulate
them):

PUBLICKEYSTRUC  publickeystruc ;
RSAPUBKEY rsapubkey;
BYTE modulus[rsapubkey.bitlen/8];
BYTE prime1[rsapubkey.bitlen/16];
BYTE prime2[rsapubkey.bitlen/16];
BYTE exponent1[rsapubkey.bitlen/16];
BYTE exponent2[rsapubkey.bitlen/16];
BYTE coefficient[rsapubkey.bitlen/16];
BYTE privateExponent[rsapubkey.bitlen/8];

Thanks much,
Steve Adams

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to