Skip to main content

validate_checksum

Function validate_checksum 

Source
pub fn validate_checksum(buf: &[u8]) -> Result<()>
Expand description

Validates a checksum matches the expected value.

Returns Ok(()) on a match, Err(_) otherwise.