ChaCha20.start

Initialize the ChaCha20 stream cipher.

struct ChaCha20
@safe nothrow @nogc
void
start
(,
in ubyte[] key
,
in ubyte[] iv
)

Parameters

forEncryption bool

Not used, because encryption and decryptioin are the same.

key ubyte[]

A secret key of 32 bytes length (256 bit).

iv ubyte[]

A nonce of 12 bytes length (96 bit).

Meta