pub fn verify_integrity(data: &[u8], expected: u32) -> Result<(), String>
Verify that data matches the expected checksum.
data
checksum
Returns Ok(()) on success or Err with a diagnostic message.
Ok(())
Err