[#EVP_PKEY_meth_set_digest_custom]
= EVP&lowbar;PKEY&lowbar;meth&lowbar;set&lowbar;digest&lowbar;custom
:mrdocs:

Set the digest&lowbar;custom callback on a custom 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;digest&lowbar;custom(
    xref:EVP_PKEY_METHOD.adoc[EVP&lowbar;PKEY&lowbar;METHOD]* pmeth,
    int(* digest&lowbar;custom)(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]*, xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]*));
----

[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;
| *digest&lowbar;custom*
| Callback invoked by EVP&lowbar;DigestSignInit()&sol;VerifyInit() to hash algorithm&hyphen;specific prefix data (for example SM2), or NULL&period;
|===


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