bruce cartland wrote:
>
> I have n (the public modulus) and e (the public exponent). No nicely
> encoded data. Given those two values is there an API set to construct the
> RSA (public key) structure? I'm guessing I'd have to create a BIGNUM first
> then ..? Nothing obvious in rsa.h. Would it be reasonable to create a new
> RSA struct then set the pointers directly?
> thanks
>
Well call RSA_new() then set rsa->n and rsa->e. The functions
BN_bin2bn() and BN_set_word() (and a few others) are useful for this.
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]