[#BN_RECP_CTX_set]
= BN&lowbar;RECP&lowbar;CTX&lowbar;set
:mrdocs:

Configure a reciprocal context for repeated division by modulus `rdiv&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;RECP&lowbar;CTX&lowbar;set(
    xref:BN_RECP_CTX.adoc[BN&lowbar;RECP&lowbar;CTX]* recp,
    xref:BIGNUM.adoc[BIGNUM] const* rdiv,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *recp*
| Context to initialize&period;
| *rdiv*
| Modulus &sol; divisor used for subsequent reciprocal operations&period;
| *ctx*
| BN&lowbar;CTX scratch space&period;
|===


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