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.

-- 
Regards,
Zihan, Sheldon Liu
------------------------------------------------
Software Engineer @ Google Inc.

Reply via email to