Set the RSA public exponent used when generating a key (deprecated).
Declared in <openssl/rsa.h>
[[deprecated]]
int
EVP_PKEY_CTX_set_rsa_keygen_pubexp(
EVP_PKEY_CTX* ctx,
BIGNUM* pubexp);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Keygen EVP_PKEY_CTX for an RSA algorithm. |
| pubexp | Public exponent to use; ownership is not transferred (use EVP_PKEY_CTX_set1_rsa_keygen_pubexp instead). |