EVP_PKEY_CTX_set_ec_paramgen_curve_nid

Set the named curve NID used when generating EC parameters or keys.

Synopsis

Declared in <openssl/ec.h>

int
EVP_PKEY_CTX_set_ec_paramgen_curve_nid(
    EVP_PKEY_CTX* ctx,
    int nid);

Return Value

1 on success, or a negative value on failure.

Parameters

NameDescription
ctxEVP_PKEY context for EC parameter or key generation.
nidCurve NID such as NID_X9_62_prime256v1.