Zihan, Sheldon Liu

2014-10-10 06:27:06 UTC

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.

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.

Regards,

Zihan, Sheldon Liu

------------------------------------------------

Software Engineer @ Google Inc.