EVP_PKEY_CTX_set1_rsa_keygen_pubexp

Set the RSA public exponent for key generation, copying pubexp.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_set1_rsa_keygen_pubexp(
    EVP_PKEY_CTX* ctx,
    BIGNUM* pubexp);

Return Value

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

Parameters

NameDescription
ctxKeygen context for an RSA algorithm.
pubexpPublic exponent to copy (typically an odd integer such as 65537); caller retains ownership.