Set the RSA modulus and exponents, transferring ownership of the BIGNUMs (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_set0_key(
    RSA* r,
    BIGNUM* n,
    BIGNUM* e,
    BIGNUM* d);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

r

RSA key to update.

n

Modulus; required on the first call, or NULL to leave unchanged.

e

Public exponent; required on the first call, or NULL to leave unchanged.

d

Private exponent, or NULL to leave unchanged / omit.

Created with MrDocs