Function esp_idf_sys::mbedtls_md

source ·
pub unsafe extern "C" fn mbedtls_md(
    md_info: *const mbedtls_md_info_t,
    input: *const c_uchar,
    ilen: usize,
    output: *mut c_uchar
) -> c_int
Expand description

\brief This function calculates the message-digest of a buffer, with respect to a configurable message-digest algorithm in a single call.

            The result is calculated as
            Output = message_digest(input buffer).

\param md_info The information structure of the message-digest algorithm to use. \param input The buffer holding the data. \param ilen The length of the input data. \param output The generic message-digest checksum result.

\return \c 0 on success. \return #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.