Skip to main content

blake2b_long

Function blake2b_long 

Source
pub fn blake2b_long(input: &[&[u8]], out: &mut [u8]) -> Result<()>
Expand description

The Argon2 variable-length hash H'.

For outputs up to 64 bytes this is just BLAKE2b with the length prefixed. Beyond that, RFC 9106 chains 64-byte hashes and takes the first 32 bytes of each, which is why Argon2 can fill a 1024-byte block from a 64-byte primitive. Lives here because it is a property of BLAKE2b’s use rather than of Argon2’s structure.