AES constructor

AES(
  1. List<int> key, [
  2. bool noDecryption = false
])

Creates an AES cipher instance with the given encryption key.

The noDecryption flag can be set to true to disable decryption functionality.

Implementation

AES(List<int> key, [bool noDecryption = false]) {
  _keyLen = key.length;
  setKey(key, noDecryption);
}