[#BN_nist_mod_384]
= BN&lowbar;nist&lowbar;mod&lowbar;384
:mrdocs:

Fast reduction of `a` modulo the NIST P&hyphen;384 prime (0 &lt;&equals; a &lt; p&circ;2)&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;384(
    xref:BIGNUM.adoc[BIGNUM]* r,
    xref:BIGNUM.adoc[BIGNUM] const* a,
    xref:BIGNUM.adoc[BIGNUM] const* p,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| Destination residue&period;
| *a*
| Value to reduce (typically less than p&circ;2)&period;
| *p*
| Must be the NIST P&hyphen;384 prime (often ignored when specialized)&period;
| *ctx*
| BN&lowbar;CTX scratch space&period;
|===


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