[#BN_sqr]
= BN&lowbar;sqr
:mrdocs:

Square a BIGNUM&colon; `r` &equals; `a` &ast; `a&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| Destination square&period;
| *a*
| Value to square&period;
| *ctx*
| BN&lowbar;CTX scratch space, or NULL&period;
|===


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