Function hash

Source
pub fn hash(buf: &[u8]) -> [[u32; 4]; 128]
Available with target feature avx512f only.
Expand description

multiversion! MD5 hash implementation.

The bytes for each lane must be interweaved, and each lane must be the same length.

ยงExamples

For array128 with four lanes:

assert_eq!(
    array128::hash(b"hwafeobglrchlldiodej"),
    [
        md5::hash(b"hello"),
        md5::hash(b"world"),
        md5::hash(b"abcde"),
        md5::hash(b"fghij"),
    ],
);