Function utils::md5::hash
source · pub fn hash(buf: &[u8]) -> [u32; 4]
Expand description
Returns the MD5 hash of the input slice.
Wrapper around the scalar
implementation.
§Examples
assert_eq!(hash(b"").as_slice(), &[0xd41d8cd9, 0x8f00b204, 0xe9800998, 0xecf8427e]);
assert_eq!(hash(b"Hello World").as_slice(), &[0xb10a8db1, 0x64e07541, 0x05b7a99b, 0xe72e3fe5]);