[#EVP_MD_meth_new]
= EVP&lowbar;MD&lowbar;meth&lowbar;new
:mrdocs:

Allocate a mutable EVP&lowbar;MD method object for custom digests (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EVP_MD.adoc[EVP&lowbar;MD]*
EVP&lowbar;MD&lowbar;meth&lowbar;new(
    int md&lowbar;type,
    int pkey&lowbar;type);
----

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

Deprecated&semi; prefer provider&hyphen;based digests instead of building EVP&lowbar;MD methods by hand&period;

== Return Value

New EVP&lowbar;MD, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *md&lowbar;type*
| NID identifying the digest algorithm&period;
| *pkey&lowbar;type*
| Legacy NID associating the digest with a public&hyphen;key type, or NID&lowbar;undef&period;
|===


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