finish method

  1. @override
Hash finish(
  1. List<int> out
)
override

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

@override
Hash finish(List<int> out) {
  if (!_finished) {
    _finalize();
    _iterate();
    _finished = true;
  }
  for (var i = 0; i < _state.length; i++) {
    writeUint32LE(_state[i], out, i * 4);
  }
  return this;
}