d p chang wrote:
> 
> I tried this to the users list yesterday, but didn't see it in the
> archives.
> 
> Anyway, this is sort of following up to an older openssl-dev article
> since i'm having a similar problem, and don't quite understand the
> response in:
> 
>         http://www.mail-archive.com/[email protected]/msg09258.html
> 
> Since there were no further followups...
> 
> Ehsan Amiri wrote:
> 
>  > I create a RSA key using "RSA_generate_key" and then
>  > public and private parts to two different files using
>  > this functions:
>  >
>  > PEM_write_bio_RSAPublicKey  &
>  > PEM_write_bio_RSAPrivateKey
>  >
>  > but when I want to instantiate an "RSA *" by calling
>  > the function
>  >
>  > PEM_read_bio_RSA_PUBKEY
>  >

If you want to use PEM_read_bio_RSA_PUBKEY then you must also
PEM_write_bio_RSA_PUBKEY to create the file. You can't mix the
RSAPublicKey and RSA_PUBKEY PEM routines because the formats are
different.

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
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to