RSA_set0_factors

Set the RSA prime factors p and q, transferring ownership of the BIGNUMs (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_set0_factors(
    RSA* r,
    BIGNUM* p,
    BIGNUM* q);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rRSA key to update.
pFirst prime factor; required on the first call, or NULL to leave unchanged.
qSecond prime factor; required on the first call, or NULL to leave unchanged.