[#EVP_MD_CTX_copy_ex]
= EVP&lowbar;MD&lowbar;CTX&lowbar;copy&lowbar;ex
:mrdocs:

Copy digest context state from `in` into an already allocated `out&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;MD&lowbar;CTX&lowbar;copy&lowbar;ex(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* out,
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX] const* in);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| Destination context (must be initialised)&semi; previous state is replaced&period;
| *in*
| Source context to copy, including algorithm state and associated key material&period;
|===


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