Generate an X9.31-style probable prime derived from parameters Xp/e (deprecated).
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_X931_generate_prime_ex(
BIGNUM* p,
BIGNUM* p1,
BIGNUM* p2,
BIGNUM* Xp1,
BIGNUM* Xp2,
BIGNUM const* Xp,
BIGNUM const* e,
BN_CTX* ctx,
BN_GENCB* cb);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| p | Destination for the generated prime. |
| p1 | Optional destination for auxiliary prime p1, or NULL. |
| p2 | Optional destination for auxiliary prime p2, or NULL. |
| Xp1 | Optional random seed for p1, or NULL to generate internally. |
| Xp2 | Optional random seed for p2, or NULL to generate internally. |
| Xp | Random parameter that constrains p. |
| e | Public exponent that must be coprime to (p-1). |
| ctx | BN_CTX scratch space. |
| cb | Optional progress callback, or NULL. |