[#EVP_PKEY_CTX_new_from_name]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;new&lowbar;from&lowbar;name
:mrdocs:

Allocate a key context for an algorithm fetched by name from providers&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;from&lowbar;name(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* name,
    char const* propquery);
----

== 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
| *libctx*
| Library context for the fetch, or NULL for the default&period;
| *name*
| Algorithm name (for example &quot;RSA&quot; or &quot;EC&quot;)&period;
| *propquery*
| Property query string, or NULL&period;
|===


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