[#BN_nist_mod_func]
= BN&lowbar;nist&lowbar;mod&lowbar;func
:mrdocs:

Return a fast modular&hyphen;reduction function for a known NIST prime&period;

== Synopsis

Declared in `&lt;openssl&sol;bn&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int(*
BN&lowbar;nist&lowbar;mod&lowbar;func(xref:BIGNUM.adoc[BIGNUM] const* p))(xref:BIGNUM.adoc[BIGNUM]*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BN_CTX.adoc[BN&lowbar;CTX]*);
----

== Return Value

Specialized mod function for `p,` or NULL if `p` is not a built&hyphen;in NIST prime&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Prime to look up (for example a BN&lowbar;get0&lowbar;nist&lowbar;prime&lowbar;&ast; value)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
