[#BN_mod_word]
= BN&lowbar;mod&lowbar;word
:mrdocs:

Return `a` modulo word `w&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned long
BN&lowbar;mod&lowbar;word(
    xref:BIGNUM.adoc[BIGNUM] const* a,
    unsigned long w);
----

== Return Value

Remainder in &lsqb;0, w), or (BN&lowbar;ULONG)&hyphen;1 on error&period;&rsqb;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Dividend&period;
| *w*
| Modulus word (must be non&hyphen;zero)&period;
|===


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