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