[#BN_reciprocal]
= BN&lowbar;reciprocal
:mrdocs:

Compute a reciprocal `r` &equals; 2&circ;`len` &sol; `m` for BN&lowbar;div&hyphen;style quotient estimation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;reciprocal(
    xref:BIGNUM.adoc[BIGNUM]* r,
    xref:BIGNUM.adoc[BIGNUM] const* m,
    int len,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

`len` on success, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| Destination reciprocal&period;
| *m*
| Divisor&period;
| *len*
| Bit precision of the reciprocal&period;
| *ctx*
| BN&lowbar;CTX scratch space&period;
|===


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