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

\brief This function exports an elliptic curve as a TLS ECParameters record as defined in RFC 4492, Section 5.4.

\param grp The ECP group to be exported. This must be initialized and have group parameters set, for example through mbedtls_ecp_group_load(). \param olen The address at which to store the number of Bytes written. This must not be \c NULL. \param buf The buffer to write to. This must be a writable buffer of length \p blen Bytes. \param blen The length of the output buffer \p buf in Bytes.

\return \c 0 on success. \return #MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL if the output buffer is too small to hold the exported group. \return Another negative error code on other kinds of failure.