Expand description
Blake2 algorithm
Constants§
- IV
- got IV from: https://en.wikipedia.org/wiki/BLAKE_(hash_function)
- SIGMA
- SIGMA from spec: https://datatracker.ietf.org/doc/html/rfc7693#section-2.7
Functions§
- compress
- Compression function F takes as an argument the state vector “h”, message block vector “m” (last block is padded with zeros to full block size, if required), 2w-bit offset counter “t”, and final block indicator flag “f”. Local vector v[0..15] is used in processing. F returns a new state vector. The number of rounds, “r”, is 12 for BLAKE2b and 10 for BLAKE2s. Rounds are numbered from 0 to r - 1.
- g
- G function: https://tools.ietf.org/html/rfc7693#section-3.1