BN_X931_derive_prime_ex

Derive an X9.31 prime p from Xp/Xp1/Xp2 parameters (deprecated).

Synopsis

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);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pDestination for the derived prime.
p1Optional destination for the first auxiliary prime, or NULL.
p2Optional destination for the second auxiliary prime, or NULL.
XpRandom parameter used to construct p.
Xp1Random parameter used to construct p1.
Xp2Random parameter used to construct p2.
ePublic exponent that must be coprime to p-1.
ctxBN_CTX for temporaries.
cbOptional generation callback, or NULL.