[#EVP_PKEY_asn1_new]
= EVP&lowbar;PKEY&lowbar;asn1&lowbar;new
:mrdocs:

Allocate a new custom EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD for algorithm `id&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY_ASN1_METHOD.adoc[EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD]*
EVP&lowbar;PKEY&lowbar;asn1&lowbar;new(
    int id,
    int flags,
    char const* pem&lowbar;str,
    char const* info);
----

== Return Value

New mutable ASN&period;1 method, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| Public&hyphen;key algorithm NID for the method&period;
| *flags*
| ASN1 method flags such as ASN1&lowbar;PKEY&lowbar;SIGPARAM&lowbar;NULL&period;
| *pem&lowbar;str*
| PEM algorithm name string associated with this method, or NULL&period;
| *info*
| Optional human&hyphen;readable description stored on the method, or NULL&period;
|===


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