[#BN_mod_add_quick]
= BN&lowbar;mod&lowbar;add&lowbar;quick
:mrdocs:

Compute `r` &equals; (`a` &plus; `b)` mod `m` assuming 0 &lt;&equals; `a,b` &lt; `m&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;mod&lowbar;add&lowbar;quick(
    xref:BIGNUM.adoc[BIGNUM]* r,
    xref:BIGNUM.adoc[BIGNUM] const* a,
    xref:BIGNUM.adoc[BIGNUM] const* b,
    xref:BIGNUM.adoc[BIGNUM] const* m);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| Destination (may alias `a` or `b)&period;`
| *a*
| First addend already reduced modulo `m&period;`
| *b*
| Second addend already reduced modulo `m&period;`
| *m*
| Modulus&period;
|===


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