Set the RSA public exponent for key generation, copying pubexp.
Declared in <openssl/rsa.h>
int
EVP_PKEY_CTX_set1_rsa_keygen_pubexp(
EVP_PKEY_CTX* ctx,
BIGNUM* pubexp);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Keygen context for an RSA algorithm. |
| pubexp | Public exponent to copy (typically an odd integer such as 65537); caller retains ownership. |