Skip to main content

checksums

Function checksums 

Source
pub fn checksums(
    asset_filename: &str,
    asset_bytes: &[u8],
    checksums_file: &str,
) -> Result<()>
Expand description

Verify asset_bytes against a checksums-file body. The body is in the sha256sum format — one "<hex> <filename>" per line. Matches by the asset_filename’s basename.

§Errors

UpdateError::BadChecksum when the asset’s hash doesn’t appear or doesn’t match.