Function esp_idf_svc::hal::sys::mbedtls_ecp_group_load

source ·
pub unsafe extern "C" fn mbedtls_ecp_group_load(
    grp: *mut mbedtls_ecp_group,
    id: u32,
) -> i32
Expand description

\brief This function sets up an ECP group context from a standardized set of domain parameters.

\note 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.

\param grp The group context to setup. This must be initialized. \param id The identifier of the domain parameter set to load.

\return \c 0 on success. \return #MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE if \p id doesn’t correspond to a known group. \return Another negative error code on other kinds of failure.