[#EC_GROUP_check_named_curve]
= EC&lowbar;GROUP&lowbar;check&lowbar;named&lowbar;curve
:mrdocs:

Identify whether `group` matches a built&hyphen;in named curve and return its NID&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EC&lowbar;GROUP&lowbar;check&lowbar;named&lowbar;curve(
    xref:EC_GROUP.adoc[EC&lowbar;GROUP] const* group,
    int nist&lowbar;only,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

Matching curve NID on success, or 0 &sol; a negative value when no named curve matches or on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| Curve group to compare against known named curves&period;
| *nist&lowbar;only*
| When non&hyphen;zero, only NIST curves are considered&period;
| *ctx*
| Optional BN&lowbar;CTX for temporary big&hyphen;number work, or NULL&period;
|===


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