reset method

  1. @override
SerializableHash<HashState> reset()
override

Resets the hash computation to its initial state.

This method initializes the hash computation to its initial state, clearing any previously processed data. After calling this method, you can start a new hash computation.

Returns the current instance of the hash algorithm with the initial stat

Implementation

@override
SerializableHash reset() {
  _initState();
  _bufferLength = 0;
  _bytesHashed = 0;
  _finished = false;

  return this;
}