[#EVP_CIPHER_CTX_set_cipher_data]
= EVP&lowbar;CIPHER&lowbar;CTX&lowbar;set&lowbar;cipher&lowbar;data
:mrdocs:

Replace the cipher&hyphen;implementation private data pointer on `ctx&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
EVP&lowbar;CIPHER&lowbar;CTX&lowbar;set&lowbar;cipher&lowbar;data(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    void* cipher&lowbar;data);
----

== Return Value

The previous cipher&hyphen;data pointer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context&period;
| *cipher&lowbar;data*
| New implementation data pointer (ownership remains with the caller&sol;impl)&period;
|===


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