[#EVP_PKEY_meth_set_encrypt]
= EVP&lowbar;PKEY&lowbar;meth&lowbar;set&lowbar;encrypt
:mrdocs:

Set public&hyphen;key encryption callbacks on an EVP&lowbar;PKEY&lowbar;METHOD (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
EVP&lowbar;PKEY&lowbar;meth&lowbar;set&lowbar;encrypt(
    xref:EVP_PKEY_METHOD.adoc[EVP&lowbar;PKEY&lowbar;METHOD]* pmeth,
    int(* encrypt&lowbar;init)(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]*),
    int(* encryptfn)(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]*, unsigned char*, size&lowbar;t*, unsigned char const*, size&lowbar;t));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *pmeth*
| Method table to update&period;
| *encrypt&lowbar;init*
| Optional initialiser called from EVP&lowbar;PKEY&lowbar;encrypt&lowbar;init(), or NULL&period;
| *encryptfn*
| Callback that encrypts `in` into `out` &sol; &ast;`outlen,` or NULL to clear&period;
|===


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