Set multi‐prime RSA factors, exponents, and CRT coefficients (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_set0_multi_prime_params(
    RSA* r,
    BIGNUM* primes[],
    BIGNUM* exps[],
    BIGNUM* coeffs[],
    int pnum);
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.

primes

Array of pnum prime factors that r will own.

exps

Array of pnum CRT exponents that r will own.

coeffs

Array of pnum CRT coefficients that r will own.

pnum

Number of additional primes (beyond the classic two‐prime case).

Created with MrDocs