BN_X931_generate_prime_ex

Generate an X9.31-style probable prime derived from parameters Xp/e (deprecated).

Synopsis

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pDestination for the generated prime.
p1Optional destination for auxiliary prime p1, or NULL.
p2Optional destination for auxiliary prime p2, or NULL.
Xp1Optional random seed for p1, or NULL to generate internally.
Xp2Optional random seed for p2, or NULL to generate internally.
XpRandom parameter that constrains p.
ePublic exponent that must be coprime to (p-1).
ctxBN_CTX scratch space.
cbOptional progress callback, or NULL.