AES.this

this(const(ubyte)[] key)

Constructs a new AES cipher with the given key.

Parameters

keyThe secret key (16, 24, or 32 bytes).

Throws

CryptoException if the key length is invalid.