processData method

void processData(
  1. Uint8List inp,
  2. int inOff,
  3. int inLen,
  4. Uint8List out,
  5. int outOff,
)

Implementation

void processData(
    Uint8List inp, int inOff, int inLen, Uint8List out, int outOff) {
  if (outOff > (out.length - inLen)) {
    throw ArgumentError('Output buffer too short');
  }

  chacha20.processBytes(inp, inOff, inLen, out, outOff);

  _dataCount = incrementCount(_dataCount, inLen, DATA_LIMIT);
}