EC_KEY_new_by_curve_name

Creates a new EC_KEY object using a named curve as underlying EC_GROUP object. Same as calling EC_KEY_new_by_curve_name_ex with a NULL library context and property query string.

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
EC_KEY*
EC_KEY_new_by_curve_name(int nid);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

EC_KEY object or NULL if an error occurred.

Parameters

NameDescription
nidNID of the named curve.