HSalsa

ubyte[32]
HSalsa
pure nothrow @nogc
(
uint rounds = 20
)
(
in ubyte[] key
,
in ubyte[] nonce
)
if (
rounds == 12 ||
rounds == 20
)
in { assert (key.length == 32, "HSalsa requires 256 bit key."); assert (nonce.length == 16, "HSalsa requires 128 bit nonce."); }

Parameters

key
Type: ubyte[]

32 byte key.

nonce
Type: ubyte[]

24 byte nonce.

Return Value

Type: ubyte[32]

256 bit value.

Meta