Cipher.init

void init(CipherOperation op, Key key, const(ubyte)[] iv = null)

Initializes the cipher with a key and optional IV/nonce.

Parameters

opThe operation mode (encryption or decryption).
keyThe key to use.
ivThe initialization vector or nonce (optional).