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:
alias BLAKE2s160 = BLAKE2!(BLAKE2Variant.s, 160); auto blake2s160_Of(T...)(T data) { return digest!(BLAKE2s160, T)(data); } public alias BLAKE2s160Digest = WrapperDigest!BLAKE2s160;
Returns the finished hash.
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 hash variation.
Digest size in bits.
See Implementation
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: