Returns the finished hash.
Initiates a key with digest. This is meant to be used after the digest initiation. The key limit is 64 bytes for BLAKE2b and 32 bytes for BLAKE2s. If the limit is reached, it fails silenty by truncating key data.
Feed the algorithm with data. Also implements the std.range.primitives.isOutputRange interface for ubyte and const(ubyte)[].
Initiate or reset the state of the structure.
Digest size in bits
BLAKE2 structure template.
It is recommended to use the BLAKE2p512 and BLAKE2s256 aliases. However, if you wish to use a custom digest size, this is the structure to use.
Example definitions for BLAKE2s-160: