Set the RSA modulus size in bits for key generation on an EVP_PKEY_CTX.
Declared in <openssl/rsa.h>
int
EVP_PKEY_CTX_set_rsa_keygen_bits(
EVP_PKEY_CTX* ctx,
int bits);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Keygen context for an RSA algorithm. |
| bits | Desired modulus length in bits (for example 2048 or 3072). |