Function utils::md5::array4096::hash

source ·
pub fn hash(buf: &[u8]) -> [[u32; 4]; 128]
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"),
    ],
);