Constructs AES with the given 16, 24 or 32-byte key for AES-128, AES-192, or AES-256.
If noDecryption is true, decryption key will not expanded, saving time and memory for cipher modes when decryption is not used (such as AES-CTR).
Decrypt 16-byte block src into 16-byte block dst.
Source and destination may point to the same byte array.
This function should not be used to encrypt data without any cipher mode! It should only be used to implement a cipher mode.
Encrypt 16-byte block src into 16-byte block dst.
Source and destination may point to the same byte array.
This function should not be used to encrypt data without any cipher mode! It should only be used to implement a cipher mode.
AES block cipher.
WARNING: This implementation uses lookup tables, so it's susceptible to cache-timing side-channel attacks. (A constant-time version we tried was super slow: a few kilobytes per second)
Key size: 16, 24 or 32 bytes, block size: 16 bytes.