processBytes method

  1. @override
int processBytes(
  1. Uint8List inp,
  2. int inOff,
  3. int len,
  4. Uint8List out,
  5. int outOff,
)
override

Processes the input and returns the amount of bytes written.

Implementation

@override
int processBytes(
    Uint8List inp, int inOff, int len, Uint8List out, int outOff) {
  _ensureAadMacFinished();

  if (_forEncryption) {
    _ctr.processBytes(inp, inOff, len, out, outOff);
    _cMac.update(out, outOff, len);
    return len;
  } else {
    return _buf(inp, inOff, len, out, outOff);
  }
}