finish method

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

Finalizes the hash computation and stores the result in the provided buffer.

This method finalizes the hash computation, ensuring that all data has been processed, and stores the result in the provided 'out' buffer as a hash digest. If the hash computation has already been finished, it won't be reprocessed.

Parameters:

  • out: The List

Returns:

  • The MD4 hash object after finalization.

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