mbedtls_ecp_group_load() function
This function sets up an ECP group context from a standardized set of domain parameters.
Arguments
grp
The group context to setup. This must be initialized.
id
The identifier of the domain parameter set to load.
Return value
\c 0 on success. #MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE if \p id doesn't correspond to a known group. Another negative error code on other kinds of failure.
Notes
The index should be a value of the NamedCurve enum, as defined in RFC-4492: Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS), usually in the form of an \c MBEDTLS_ECP_DP_XXX macro.