AESNI.start

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

Parameters

forEncryption
Type: bool

false: decrypt, true: encrypt

userKey
Type: ubyte[]

Secret key.

iv
Type: ubyte[]

Not used.

Throws

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

Meta