Rafa Marín López wrote:
>
> Hello, all.
>
> I have executed this instruction:
>
> char keystr[1024];
>
> RSA *rsa=RSA_generate_key((int)1024,0x10001,NULL,NULL);
>
> i2d_RSAPublicKey(rsa,&(keystr));
>
> But resultant keystr is zeroed. Why?
>
> I have verified the RSA key pair and they are correct.
>
Read the FAQ. You aren't using the i2d function properly.
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]