pub unsafe extern "C" fn mbedtls_ecp_tls_read_group(
    grp: *mut mbedtls_ecp_group,
    buf: *mut *const c_uchar,
    len: usize
) -> c_int
Expand description

\brief This function sets up an ECP group context 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 group context to setup. This must be initialized. \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.