Salsa.block

Salsa20/rounds function

  1. void block(uint[] input, uint[] output)
    struct Salsa(uint rounds = 20, bool xsalsa = false)
    @nogc nothrow static pure nothrow @nogc
    void
    block
    (
    uint rounds = 20
    )
    (
    in uint[] input
    ,
    uint[] output
    )
    if (
    rounds % 2 == 0 ||
    rounds > 0
    )
    if (
    rounds == 12 ||
    rounds == 20
    )
  2. void block(uint[16] input, uint[16] output)

Parameters

rounds

number of rounds (20 in default implementation)

input uint[]

input data

Meta