An example is documented in the openSSL wiki: http://wiki.openssl.org/index.php/Manual:D2i_RSAPublicKey(3)
BH From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Zihan, Sheldon Liu Sent: Friday, October 10, 2014 8:27 AM To: openssl-users@openssl.org Subject: What's the right way to make a RSA public key from two BIGNUM n and e? 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.