processByte method

  1. @override
int processByte(
  1. int inp,
  2. Uint8List out,
  3. int outOff
)
override

Processes the input and returns the amount of bytes written.

Implementation

@override
int processByte(int inp, Uint8List out, int outOff) {
  _ensureAadMacFinished();

  var r = out[outOff] = _ctr.returnByte(inp);

  if (_forEncryption) {
    _cMac.updateByte(r);
    return 1;
  }
  return _bufByte(inp);
}