[#BN_check_prime] = BN_check_prime :mrdocs: Test whether `p` is prime using the library's default primality checks. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_check_prime( xref:BIGNUM.adoc[BIGNUM] const* p, xref:BN_CTX.adoc[BN_CTX]* ctx, xref:BN_GENCB.adoc[BN_GENCB]* cb); ---- == Return Value 1 if probably prime, 0 if composite, or ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *p* | Candidate integer. | *ctx* | Optional BN_CTX, or NULL to allocate internally. | *cb* | Optional progress callback, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#