CBC.start

Initialize the cipher and, possibly, the initialization vector (IV). If the cipher is already initialized a new IV can be set without the overhead of a new key setup: init(forEncryption, null, newIV)

struct CBC(Cipher)
void
start
nothrow @nogc
(
,
in ubyte[] userKey
,
in ubyte[] iv = null
)
in { assert (iv is null || iv.length == blockSize, "Length ov IV does not match block size!"); }
if ()

Parameters

forEncryption
Type: bool

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

Meta