clean method

  1. @override
void clean()
override

Cleans sensitive data and resets the internal state of the hash function.

Implementation

@override
void clean() {
  BinaryOps.zero(_vtmp);
  BinaryOps.zero(_mtmp);
  BinaryOps.zero(_state);
  BinaryOps.zero(_buffer);
  BinaryOps.zero(_initialState);
  if (_paddedKey != null) {
    BinaryOps.zero(_paddedKey!);
  }
  _bufferLength = 0;
  BinaryOps.zero(_ctr);
  BinaryOps.zero(_flag);
  _lastNode = false;
  _finished = false;
}