[#EVP_PKEY_meth_new]
= EVP&lowbar;PKEY&lowbar;meth&lowbar;new
:mrdocs:

Allocate a new custom EVP&lowbar;PKEY&lowbar;METHOD for algorithm `id` (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_PKEY_METHOD.adoc[EVP&lowbar;PKEY&lowbar;METHOD]*
EVP&lowbar;PKEY&lowbar;meth&lowbar;new(
    int id,
    int flags);
----

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

Prefer provider&hyphen;based EVP&lowbar;KEYMGMT &sol; EVP&lowbar;SIGNATURE implementations for new code&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| Public&hyphen;key algorithm NID this method implements&period;
| *flags*
| Method flags such as EVP&lowbar;PKEY&lowbar;FLAG&lowbar;AUTOARGLEN or EVP&lowbar;PKEY&lowbar;FLAG&lowbar;SIGCTX&lowbar;CUSTOM&period;
|===


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