On 10/10/2014 2:27 AM, Zihan, Sheldon Liu wrote:
What's the right way to make a RSA public key from two BIGNUM n
(modulus) and e (public exponent)?

RSA* pubKeyRSA = RSA_new();
pubKeyRSA->n = n;
pubKeyRSA->e = e;

This way seems working. But I didn't find it is documented anywhere.
Is there a direct API taking n and e, and returns a RSA*? Thanks.

I don't think there is an official API. I use your method and it works across many platforms.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to