Salsa20

implementation of the Salsa20/20 stream cipher

Destructor

~this
~this()
Undocumented in source.

Members

Functions

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

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

reset
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.
stateSize
enum stateSize;
Undocumented in source.

Static functions

salsaCore
void salsaCore(uint[] input, uint[] x)

Salsa20 function

Meta