Function blake2b_simd::blake2b[][src]

pub fn blake2b(input: &[u8]) -> Hash
Expand description

Compute the BLAKE2b hash of a slice of bytes all at once, using default parameters.

Example

let expected = "ca002330e69d3e6b84a46a56a6533fd79d51d97a3bb7cad6c2ff43b354185d6d\
                c1e723fb3db4ae0737e120378424c714bb982d9dc5bbd7a0ab318240ddd18f8d";
let hash = blake2b(b"foo");
assert_eq!(expected, &hash.to_hex());