Test whether p is prime using the library's default primality checks.
Declared in <openssl/bn.h>
int
BN_check_prime(
BIGNUM const* p,
BN_CTX* ctx,
BN_GENCB* cb);
1 if probably prime, 0 if composite, or -1 on error.
| Name | Description |
|---|---|
| p | Candidate integer. |
| ctx | Optional BN_CTX, or NULL to allocate internally. |
| cb | Optional progress callback, or NULL. |