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

Name

Description

ctx

EVP_PKEY context for EC parameter or key generation.

nid

Curve NID such as NID_X9_62_prime256v1.

Created with MrDocs