reset method

  1. @override
BLAKE2s reset()
override

Resets the hash to its initial state.

Implementation

@override
BLAKE2s reset() {
  _state.setAll(0, _initialState);
  if (_paddedKey != null) {
    _buffer.setAll(0, _paddedKey!);
    _bufferLength = _blockSize;
  } else {
    _bufferLength = 0;
  }
  BinaryOps.zero(_ctr);
  BinaryOps.zero(_flag);
  _finished = false;
  return this;
}