Generate a two-prime RSA key pair into an existing RSA object (deprecated).
Declared in <openssl/rsa.h>
[[deprecated]]
int
RSA_generate_key_ex(
RSA* rsa,
int bits,
BIGNUM* e,
BN_GENCB* cb);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| rsa | RSA object that receives the generated key material. |
| bits | Desired modulus size in bits. |
| e | Public exponent (commonly 65537); must be odd. |
| cb | Optional progress callback, or NULL. |