Salsa.block

Salsa20/rounds function

struct Salsa(uint rounds = 20, bool xsalsa = false)
@nogc nothrow static
void
block
pure nothrow @nogc
(
uint rounds = 20
)
(
in uint[] input
,
uint[] output
)
if (
rounds % 2 == 0 ||
rounds > 0
)
in { assert (input.length == 16, "invalid input length"); assert (output.length == 16, "invalid output buffer length"); }
if (
rounds == 12 ||
rounds == 20
)

Parameters

rounds

number of rounds (20 in default implementation)

input
Type: uint[]

input data

Meta