AESNI.start

struct AESNI
nothrow @nogc
void
start
(,
in ubyte[] userKey
,
in ubyte[] iv = null
)

Parameters

forEncryption bool

false: decrypt, true: encrypt

userKey ubyte[]

Secret key.

iv ubyte[]

Not used.

Throws

Error if aes instruction set is not supported by CPU. Use checkHardwareAES() to avoid running into this error.

Meta