BN_is_prime_fasttest_ex

Probable-primality test with optional trial division (deprecated; prefer BN_check_prime).

Synopsis

Declared in <openssl/bn.h>

[[deprecated]]
int
BN_is_prime_fasttest_ex(
    BIGNUM const* p,
    int nchecks,
    BN_CTX* ctx,
    int do_trial_division,
    BN_GENCB* cb);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if p is probably prime, 0 if composite, or -1 on error.

Parameters

NameDescription
pCandidate integer.
nchecksNumber of Miller–Rabin rounds, or 0 for a size-based default.
ctxBN_CTX scratch, or NULL.
do_trial_divisionNon-zero to trial-divide by small primes first.
cbOptional progress callback, or NULL.