Generate an RSA key pair (very old API; deprecated — prefer RSA_generate_key_ex).
Declared in <openssl/rsa.h>
[[deprecated]]
RSA*
RSA_generate_key(
int bits,
unsigned long e,
void(* callback)(int, int, void*),
void* cb_arg);
Deprecated. Use of this entity is allowed but discouraged.
New RSA key pair, or NULL on error.
| Name | Description |
|---|---|
| bits | Modulus size in bits. |
| e | Public exponent (for example 65537). |
| callback | Optional progress callback, or NULL. |
| cb_arg | Opaque argument passed to callback. |