[#EVP_PKEY_CTX_set_rsa_keygen_bits] = EVP_PKEY_CTX_set_rsa_keygen_bits :mrdocs: Set the RSA modulus size in bits for key generation on an EVP_PKEY_CTX. == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_CTX_set_rsa_keygen_bits( xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]* ctx, int bits); ---- == Return Value 1 on success, or a non‐positive value on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Keygen context for an RSA algorithm. | *bits* | Desired modulus length in bits (for example 2048 or 3072). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#