Generate an RSA key pair (very old API; deprecated — prefer RSA_generate_key_ex).
Synopsis
Declared in <openssl/rsa.h>
[[deprecated]]
RSA*
RSA_generate_key(
int bits,
unsigned long e,
void(* callback)(int, int, void*),
void* cb_arg);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
New RSA key pair, or NULL on error.
Parameters
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 |
Created with MrDocs