RSA_get0_factors

Return the prime factors p and q of an RSA key without transferring ownership (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
void
RSA_get0_factors(
    RSA const* r,
    BIGNUM const** p,
    BIGNUM const** q);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

the prime factors p and q of an RSA key without transferring ownership (deprecated).

Parameters

NameDescription
rRSA key to query.
pOptional destination for the first prime factor, or NULL.
qOptional destination for the second prime factor, or NULL.