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

Allocate a key context for operations with `pkey&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(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:ENGINE.adoc[ENGINE]* e);
----

== Return Value

New EVP&lowbar;PKEY&lowbar;CTX, or NULL on error&semi; free with EVP&lowbar;PKEY&lowbar;CTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key that supplies the algorithm and material for the context&period;
| *e*
| Optional ENGINE implementing the algorithm, or NULL&period;
|===


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