Function esp_idf_sys::mbedtls_ecdh_setup

source ยท
pub unsafe extern "C" fn mbedtls_ecdh_setup(
    ctx: *mut mbedtls_ecdh_context,
    grp_id: mbedtls_ecp_group_id,
) -> c_int
Expand description

\brief This function sets up the ECDH context with the information given.

             This function should be called after mbedtls_ecdh_init() but
             before mbedtls_ecdh_make_params(). There is no need to call
             this function before mbedtls_ecdh_read_params().

             This is the first function used by a TLS server for ECDHE
             ciphersuites.

\param ctx The ECDH context to set up. This must be initialized. \param grp_id The group id of the group to set up the context for.

\return \c 0 on success.