Steven Adams wrote:
> 
> 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?
> 

Reverse the byte order of each component then call BN_bin2bn() with the
relevant parameters to set each corresponding memeber of an RSA
structure. Then assign in to an EVP_PKEY structure.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to