inputBlockSize property

  1. @override
int get inputBlockSize
override

Get this ciphers's maximum input block size.

Implementation

@override
int get inputBlockSize {
  if (_key == null) {
    throw StateError(
        'Input block size cannot be calculated until init() called');
  }

  var bitSize = _key!.modulus!.bitLength;
  if (_forEncryption) {
    return ((bitSize + 7) ~/ 8) - 1;
  } else {
    return (bitSize + 7) ~/ 8;
  }
}