Test whether p is prime using Miller-Rabin (deprecated; prefer BN_check_prime).
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_is_prime_ex(
BIGNUM const* p,
int nchecks,
BN_CTX* ctx,
BN_GENCB* cb);
Deprecated. Use of this entity is allowed but discouraged.
1 if probably prime, 0 if composite, or -1 on error.
| Name | Description |
|---|---|
| p | Candidate integer. |
| nchecks | Number of Miller-Rabin rounds, or BN_prime_checks for a default. |
| ctx | Optional BN_CTX, or NULL to allocate internally. |
| cb | Optional progress callback, or NULL. |