Identify whether group matches a built‐in named curve and return its NID.
Synopsis
Declared in <openssl/ec.h>
int
EC_GROUP_check_named_curve(
EC_GROUP const* group,
int nist_only,
BN_CTX* ctx);
Return Value
Matching curve NID on success, or 0 / a negative value when no named curve matches or on error.
Parameters
Name |
Description |
group |
Curve group to compare against known named curves. |
nist_only |
When non‐zero, only NIST curves are considered. |
ctx |
Optional BN_CTX for temporary big‐number work, or NULL. |
Created with MrDocs