DartAesGcm constructor

DartAesGcm({
  1. int secretKeyLength = 32,
  2. int nonceLength = 12,
})

Implementation

DartAesGcm({this.secretKeyLength = 32, this.nonceLength = 12})
    : assert(secretKeyLength == 16 ||
          secretKeyLength == 24 ||
          secretKeyLength == 32),
      assert(nonceLength >= 4),
      super.constructor() {
  // We haven't fixed endianness issues.
  if (Endian.host != Endian.little) {
    throw StateError('BigEndian systems are unsupported');
  }
}