EC_GROUP_new_by_curve_name_ex

Creates a EC_GROUP object with a curve specified by a NID

Synopsis

Declared in <openssl/ec.h>

EC_GROUP*
EC_GROUP_new_by_curve_name_ex(
    OSSL_LIB_CTX* libctx,
    char const* propq,
    int nid);

Return Value

newly created EC_GROUP object with specified curve or NULL if an error occurred

Parameters

NameDescription
libctxThe associated library context or NULL for the default context
propqA property query string
nidNID of the OID of the curve name