[#BN_kronecker]
= BN&lowbar;kronecker
:mrdocs:

Compute the Kronecker symbol (a&sol;b), a generalization of the Jacobi symbol&period;

== Synopsis

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

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

== Return Value

&hyphen;1, 0, or 1 for a valid symbol, or &hyphen;2 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Numerator&period;
| *b*
| Denominator&period;
| *ctx*
| BN&lowbar;CTX scratch space&period;
|===


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