Identify whether group matches a built-in named curve and return its NID.
Declared in <openssl/ec.h>
int
EC_GROUP_check_named_curve(
EC_GROUP const* group,
int nist_only,
BN_CTX* ctx);
Matching curve NID on success, or 0 / a negative value when no named curve matches or on error.
| 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. |