CTR.start

struct CTR(Cipher)
void
start
(
,
in ubyte[] userKey
,
in ubyte[] iv
)
in { assert (iv !is null, "CTR without IV is not supported."); assert (iv.length == blockSize, "length of IV has to be the same as the block size"); }
if ()

Parameters

forEncryption
Type: bool

Does not matter for CTR because encryption and decryption is the same in this mode.

userKey
Type: ubyte[]

secret key

iv
Type: ubyte[]

initialisation vector

Meta