RSA_generate_key_ex

Generate a two-prime RSA key pair into an existing RSA object (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_generate_key_ex(
    RSA* rsa,
    int bits,
    BIGNUM* e,
    BN_GENCB* cb);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rsaRSA object that receives the generated key material.
bitsDesired modulus size in bits.
ePublic exponent (commonly 65537); must be odd.
cbOptional progress callback, or NULL.