RSA_get0_key

Get const pointers to the RSA modulus and exponents (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
void
RSA_get0_key(
    RSA const* r,
    BIGNUM const** n,
    BIGNUM const** e,
    BIGNUM const** d);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

const pointers to the RSA modulus and exponents (deprecated).

Parameters

NameDescription
rRSA key to query.
nReceives the modulus, or NULL if not requested.
eReceives the public exponent, or NULL if not requested.
dReceives the private exponent, or NULL if not requested.