update method

  1. @override
void update(
  1. Uint8List inp,
  2. int inpOff,
  3. int len
)
override

Add len bytes of data contained in inp, starting at position inpOff ti the digested input.

Implementation

@override
void update(Uint8List inp, int inpOff, int len) {
  for (var i = 0; i < len; i++) {
    _buffer[_bufferPos++] = inp[inpOff + i];

    if (_bufferPos == _buffer.length) {
      _processFilledBuffer(_buffer, 0);
    }
  }

  _increment(len * 8);
}