DartAesGcm constructor

DartAesGcm({
  1. int secretKeyLength = 32,
  2. int nonceLength = AesGcm.defaultNonceLength,
  3. Random? random,
})

Implementation

DartAesGcm({
  this.secretKeyLength = 32,
  this.nonceLength = AesGcm.defaultNonceLength,
  super.random,
})  : assert(secretKeyLength == 16 ||
          secretKeyLength == 24 ||
          secretKeyLength == 32),
      assert(nonceLength >= 4),
      super.constructor() {
  if (Endian.host != Endian.little) {
    throw StateError('BigEndian systems are unsupported');
  }
}