ChaCha20.initState

Set the state as follows: state = constants ~ key ~ counter ~ nonce

struct ChaCha20
package @safe nothrow @nogc static pure
void
initState
(
ref uint[16] state
,
in ubyte[] key
,
in uint counter
,
in ubyte[] nonce
)

Parameters

state uint[16]

The state.

key ubyte[]

32 bytes.

nonce ubyte[]

12 bytes.

Meta