[#BN_MONT_CTX_copy]
= BN&lowbar;MONT&lowbar;CTX&lowbar;copy
:mrdocs:

Copy Montgomery context `from` into `to&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BN_MONT_CTX.adoc[BN&lowbar;MONT&lowbar;CTX]*
BN&lowbar;MONT&lowbar;CTX&lowbar;copy(
    xref:BN_MONT_CTX.adoc[BN&lowbar;MONT&lowbar;CTX]* to,
    xref:BN_MONT_CTX.adoc[BN&lowbar;MONT&lowbar;CTX]* from);
----

== Return Value

`to` on success, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *to*
| Destination context (must already be allocated)&period;
| *from*
| Source context to duplicate&period;
|===


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