[#EVP_PKEY_CTX_new_id]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;new&lowbar;id
:mrdocs:

Allocate a key context for algorithm `id,` optionally using an ENGINE&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]*
EVP&lowbar;PKEY&lowbar;CTX&lowbar;new&lowbar;id(
    int id,
    xref:ENGINE.adoc[ENGINE]* e);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| Algorithm identifier such as EVP&lowbar;PKEY&lowbar;RSA&period;
| *e*
| ENGINE implementing the algorithm, or NULL for the default implementation&period;
|===


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