Function esp_idf_sys::mbedtls_ecdh_read_public

source ยท
pub unsafe extern "C" fn mbedtls_ecdh_read_public(
    ctx: *mut mbedtls_ecdh_context,
    buf: *const c_uchar,
    blen: usize,
) -> c_int
Expand description

\brief This function parses and processes the ECDHE payload of a TLS ClientKeyExchange message.

         This is the third function used by a TLS server for ECDH(E)
         ciphersuites. (It is called after mbedtls_ecdh_setup() and
         mbedtls_ecdh_make_params().)

\see ecp.h

\param ctx The ECDH context to use. This must be initialized and bound to a group, for example via mbedtls_ecdh_setup(). \param buf The pointer to the ClientKeyExchange payload. This must be a readable buffer of length \p blen Bytes. \param blen The length of the input buffer \p buf in Bytes.

\return \c 0 on success. \return An \c MBEDTLS_ERR_ECP_XXX error code on failure.