Function esp_idf_svc::hal::sys::mbedtls_ecp_tls_read_group_id
source ยท pub unsafe extern "C" fn mbedtls_ecp_tls_read_group_id(
grp: *mut u32,
buf: *mut *const u8,
len: usize,
) -> i32
Expand description
\brief This function extracts an elliptic curve group ID from a TLS ECParameters record as defined in RFC 4492, Section 5.4.
\note The read pointer \p buf is updated to point right after the ECParameters record on exit.
\param grp The address at which to store the group id. This must not be \c NULL. \param buf The address of the pointer to the start of the input buffer. \param len The length of the input buffer \c *buf in Bytes.
\return \c 0 on success. \return #MBEDTLS_ERR_ECP_BAD_INPUT_DATA if input is invalid. \return #MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE if the group is not recognized. \return Another negative error code on other kinds of failure.