reset method

  1. @override
void reset()
override

Reset the mac generator.

Implementation

@override
void reset() {
  // clean the buffer.
  for (var i = 0; i < _buf.length; i++) {
    _buf[i] = 0;
  }

  _bufOff = 0;

  // reset the underlying cipher.
  _cipher.reset();

  if (_params != null) {
    _cipher.init(true, _params!);
  }
}