reset method

  1. @override
void reset()
override

Reset the digest to its original state.

Implementation

@override
void reset() {
  _bufferPos = 0;
  _buffer.fillRange(0, _buffer.length, 0);

  _bitCount.fillRange(0, _bitCount.length, 0);

  _hash.fillRange(0, _hash.length, 0);
  _k.fillRange(0, _k.length, 0);
  _l.fillRange(0, _l.length, 0);
  _block.fillRange(0, _block.length, 0);
  _state.fillRange(0, _state.length, 0);
}