Function esp_idf_svc::sys::mbedtls_md

source ยท
pub unsafe extern "C" fn mbedtls_md(
    md_info: *const mbedtls_md_info_t,
    input: *const u8,
    ilen: usize,
    output: *mut u8,
) -> i32
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.