Skip to main content

verify_integrity

Function verify_integrity 

Source
pub fn verify_integrity(data: &[u8], expected: u32) -> Result<(), String>
Expand description

Verify that data matches the expected checksum.

Returns Ok(()) on success or Err with a diagnostic message.