reset method

  1. @override
void reset()
override

Reset the digest to its original state.

Implementation

@override
void reset() {
  _bufferPos = 0;
  _f0.set(0);
  _t0.set(0);
  _t1.set(0);
  _chainValue = null;
  _buffer!.fillRange(0, _buffer!.length, 0);
  if (_key != null) {
    _buffer!.setAll(0, _key!);
    _bufferPos = _blockSize;
  }
  init();
}