Function esp_idf_svc::sys::mbedtls_ecp_tls_read_point

source ยท
pub unsafe extern "C" fn mbedtls_ecp_tls_read_point(
    grp: *const mbedtls_ecp_group,
    pt: *mut mbedtls_ecp_point,
    buf: *mut *const u8,
    len: usize,
) -> i32
Expand description

\brief This function imports a point from a TLS ECPoint record.

\note On function return, \p *buf is updated to point immediately after the ECPoint record.

\param grp The ECP group to use. This must be initialized and have group parameters set, for example through mbedtls_ecp_group_load(). \param pt The destination point. \param buf The address of the pointer to the start of the input buffer. \param len The length of the buffer.

\return \c 0 on success. \return An \c MBEDTLS_ERR_MPI_XXX error code on initialization failure. \return #MBEDTLS_ERR_ECP_BAD_INPUT_DATA if input is invalid.