Salsa.start

Initialize the cipher.

struct Salsa(uint rounds = 20, bool xsalsa = false)
@nogc nothrow nothrow @nogc
void
start
(,
in ubyte[] key
,
in ubyte[] iv
)
if (
rounds == 12 ||
rounds == 20
)

Parameters

forEncryption bool

Not used because encryption and decryption is actually the same.

key ubyte[]

secret key

iv ubyte[]

Use a unique nonce per key.

Meta