Function utils::md5::avx2::hash

source ·
pub unsafe fn hash(buf: &[u8]) -> [[u32; 4]; 8]
Available with target feature avx2 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"),
    ],
);