Salsa

implementation of the Salsa20/20 stream cipher

Destructor

~this
~this()
Undocumented in source.

Members

Functions

processBytes
ubyte[] processBytes(ubyte[] input, ubyte[] output)

encrypt or decrypt input bytes but no more than 2^70!

reset
deprecated void reset()

reset the cipher to its initial state

returnByte
ubyte returnByte(ubyte input)
start
void start(bool forEncryption, ubyte[] key, ubyte[] iv)

Initialize the cipher.

Manifest constants

name
enum name;
Undocumented in source.

Static functions

block
void block(uint[] input, uint[] output)

Salsa20/rounds function

block
void block(uint[16] input, uint[16] output)
Undocumented in source.
initState
void initState(uint[16] state, ubyte[] keyBytes, uint counter, ubyte[] ivBytes)

Parameters

rounds

Number of rounds. 12 and 20 are allowed. Default is 20.

Meta