Derive an X9.31 prime p from Xp/Xp1/Xp2 parameters (deprecated).
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_X931_derive_prime_ex(
BIGNUM* p,
BIGNUM* p1,
BIGNUM* p2,
BIGNUM const* Xp,
BIGNUM const* Xp1,
BIGNUM const* Xp2,
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 derived prime. |
| p1 | Optional destination for the first auxiliary prime, or NULL. |
| p2 | Optional destination for the second auxiliary prime, or NULL. |
| Xp | Random parameter used to construct p. |
| Xp1 | Random parameter used to construct p1. |
| Xp2 | Random parameter used to construct p2. |
| e | Public exponent that must be coprime to p-1. |
| ctx | BN_CTX for temporaries. |
| cb | Optional generation callback, or NULL. |