Aes constructor

Aes(
  1. Uint8List derivedKey,
  2. Uint8List hmacDerivedKey,
  3. int aesKeyStrength, {
  4. bool encrypt = false,
})

Implementation

Aes(this.derivedKey, Uint8List hmacDerivedKey, this.aesKeyStrength,
    {this.encrypt = false}) {
  aesEngine = AESEngine();
  aesEngine!.init(true, KeyParameter(derivedKey));
  _macGen = AesCipherUtil.getMacBasedPRF(hmacDerivedKey);
}