Function esp_idf_hal::sys::mbedtls_ecdh_setup

source ยท
pub unsafe extern "C" fn mbedtls_ecdh_setup(
    ctx: *mut mbedtls_ecdh_context,
    grp_id: u32,
) -> i32
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.