[#EC_KEY_new_by_curve_name_ex]
= EC&lowbar;KEY&lowbar;new&lowbar;by&lowbar;curve&lowbar;name&lowbar;ex
:mrdocs:

Creates a new EC&lowbar;KEY object using a named curve as underlying EC&lowbar;GROUP object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EC_KEY.adoc[EC&lowbar;KEY]*
EC&lowbar;KEY&lowbar;new&lowbar;by&lowbar;curve&lowbar;name&lowbar;ex(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    char const* propq,
    int nid);
----

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

EC&lowbar;KEY object or NULL if an error occurred&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| The library context for to use for this EC&lowbar;KEY&period; May be NULL in which case the default library context is used&period;
| *propq*
| Any property query string
| *nid*
| NID of the named curve&period;
|===


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