Hi,
You can check the api in rsa.h, where contains rsa structure called
"rsa_st".
the common modulus for both private and public keys is key->n.
private key exponent is key->d, public key exponent is key->e.
All of these values are ing BIGNUM structure format, of which you can
find quit a lot of utilities defined in bn.h.
Peter
On 08/02/2009 08:58 PM, Neil Dugan wrote:
Hi,
I need to find the public keys modulus and exponent.
I have loaded a private/public key generated by the openssl executable
with the function PEM_read_bio_RSAPrivateKey() and using the function
PEM_write_RSA_PUBKEY() can print the private key.
How do I find out what the modulus and exponent of the public key is?
Preferably in hex.
Hopefully Neil.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]