getOutputSize method

  1. @override
int getOutputSize(
  1. int len
)
override

Returns the amount of bytes being outputted by the next processBytes and doFinal for len bytes input.

Implementation

@override
int getOutputSize(int len) {
  if (_forEncryption) {
    return len + _macSize;
  } else if (_bufFull) {
    return len;
  } else {
    return max(0, len + _bufOff - _macSize);
  }
}