GCM.start

Initialize the underlying cipher.

struct GCM(T)
void
start
nothrow @nogc
(
,
in ubyte[] key
,
in ubyte[] iv
)
in { assert (iv !is null, "Must provide an IV."); }
if (
is(T == void) ||
(
T.blockSize == 16
)
)

Parameters

forEncryption
Type: bool

true if we are setting up for encryption, false otherwise.

key
Type: ubyte[]

Secret key.

Meta