finish method
Finalizes the hash computation and stores the hash state in the provided List
This function completes the hash computation, finalizes the state, and stores the resulting
hash in the provided out
List
Parameters:
out
: The List
Returns the current instance of the hash algorithm.
Implementation
Keccack finish(List<int> dst) {
if (!_finished) {
_padAndPermute(0x01);
} else {
// Only works for up to blockSize digests,
// which is the case in our implementation.
_pos = 0;
}
_squeeze(dst);
return this;
}