IBlockCipher.start

Initialize the cipher.

interface IBlockCipher
@safe
void
start
nothrow @nogc
(
,
in ubyte[] userKey
,
in ubyte[] iv = null
)

Parameters

forEncryption
Type: bool

if true the cipher is initialised for encryption, if false for decryption.

userKey
Type: ubyte[]

A secret key.

iv
Type: ubyte[]

A nonce.

Meta