fides 4.3.5

Fides is a library for cryptographic primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub fn pearson(data: &[u8]) -> u64 {
    let mut h = 0u64;

    for byte in data {
        h ^= u64::from(*byte);
        h = h.wrapping_mul(0x8088405);
    }

    h ^= h >> 31;
    h = h.wrapping_mul(0x8088405);
    h ^= h >> 31;

    h
}