Salsa.initState

struct Salsa(uint rounds = 20, bool xsalsa = false)
@nogc nothrow static nothrow @nogc
void
initState
(
ref uint[16] state
,
in ubyte[] keyBytes
,
in uint counter
,
in ubyte[] ivBytes
)
if (
rounds == 12 ||
rounds == 20
)

Parameters

keyBytes ubyte[]

key, 16 or 32 bytes.

ivBytes ubyte[]

iv, exactly 8 bytes.

Meta