Generate a prime of approximately bits (deprecated; prefer BN_generate_prime_ex).
Synopsis
Declared in <openssl/bn.h>
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
Generated prime BIGNUM, or NULL on error.
Parameters
Name |
Description |
ret |
Destination BIGNUM, or NULL to allocate a new one. |
bits |
Desired bit length of the prime. |
safe |
Nonzero to require a safe prime ((p‐1)/2 also prime). |
add |
Optional congruence modulus constraint, or NULL. |
rem |
Optional remainder for the |
callback |
Progress callback, or NULL. |
cb_arg |
User argument passed to |
Created with MrDocs