Skip to main content

verify_checksum

Function verify_checksum 

Source
pub fn verify_checksum(data: &[u8], expected: &[u8; 8]) -> bool
Expand description

Verify data against an expected xxHash3-64 checksum.

Plain (non-constant-time) equality, consistent with the non-cryptographic threat model — do NOT change to constant-time (would imply a security property this primitive does not have).