EC_GROUP_check_named_curve

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

NameDescription
groupCurve group to compare against known named curves.
nist_onlyWhen non-zero, only NIST curves are considered.
ctxOptional BN_CTX for temporary big-number work, or NULL.