finish method

Keccack finish(
  1. List<int> dst
)

Finalizes the hash computation and stores the hash state in the provided dst.

Parameters:

  • dst: In which the hash digest is stored.

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;
}