EVP_PKEY_CTX_set_rsa_keygen_pubexp

Set the RSA public exponent used when generating a key (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
EVP_PKEY_CTX_set_rsa_keygen_pubexp(
    EVP_PKEY_CTX* ctx,
    BIGNUM* pubexp);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxKeygen EVP_PKEY_CTX for an RSA algorithm.
pubexpPublic exponent to use; ownership is not transferred (use EVP_PKEY_CTX_set1_rsa_keygen_pubexp instead).