processBlock method

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

Process a block of len bytes given by inp and starting at offset inpOff and put the resulting cipher text in out beginning at position outOff.

This method returns the total bytes put in the output buffer.

Implementation

@override
int processBlock(
    Uint8List inp, int inpOff, int len, Uint8List out, int outOff) {
  if (_forEncryption) {
    return _encodeBlock(inp, inpOff, len, out, outOff);
  } else {
    return _decodeBlock(inp, inpOff, len, out, outOff);
  }
}