Function esp_idf_svc::sys::mbedtls_md_file

source ยท
pub unsafe extern "C" fn mbedtls_md_file(
    md_info: *const mbedtls_md_info_t,
    path: *const i8,
    output: *mut u8,
) -> i32
Expand description

\brief This function calculates the message-digest checksum result of the contents of the provided file.

            The result is calculated as
            Output = message_digest(file contents).

\param md_info The information structure of the message-digest algorithm to use. \param path The input file name. \param output The generic message-digest checksum result.

\return \c 0 on success. \return #MBEDTLS_ERR_MD_FILE_IO_ERROR on an I/O error accessing the file pointed by \p path. \return #MBEDTLS_ERR_MD_BAD_INPUT_DATA if \p md_info was NULL.