Returns the finished hash. This also clears part of the state, leaving just the final digest.
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 instance.
Digest size in bits.
Digest size in bits.
SHAKE XOF digest size in bits. Defaults to 0 for SHA-3.
No exceptions are thrown.
// Defines SHAKE-128/256 with Template API, OOP API, and helper function. alias SHAKE128_256 = KECCAK!(128, 256); alias SHAKE128_256Digest = WrapperDigest!SHAKE128_256; auto shake128_256Of(T...)(T data) { return digest!(SHAKE128_256, T)(data); }
Template API SHA-3/SHAKE implementation using the Keccak[1600,24] function.
It supports SHA-3 and SHAKE XOFs. Though, it is recommended to use the SHA3_224, SHA3_256, SHA3_384, SHA3_512, SHAKE128, and SHAKE256 template aliases.