Salsa20

Implementation of Salsa20 designed by Daniel J. Bernstein.

Constructors

this
this()
Undocumented in source.
this
this(bool encrypt, ubyte[] key, ubyte[] iv)
Undocumented in source.

Members

Functions

init
void init(bool encrypt, ubyte[] key, ubyte[] iv)
Undocumented in source. Be warned that the author may not have intended to support it.
ivSetup
void ivSetup()
Undocumented in source. Be warned that the author may not have intended to support it.
keySetup
void keySetup()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
returnByte
ubyte returnByte(ubyte input)
Undocumented in source. Be warned that the author may not have intended to support it.
salsa20WordToByte
void salsa20WordToByte(const(uint[]) input, ubyte[] output)
Undocumented in source. Be warned that the author may not have intended to support it.
update
uint update(const(void[]) input_, void[] output_)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

name
const(char[]) name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

sigma
immutable(ubyte)[] sigma;
Undocumented in source.
tau
immutable(ubyte)[] tau;
Undocumented in source.

Variables

i0
uint i0;
i1
uint i1;
Undocumented in source.
index
uint index;
Undocumented in source.
keyStream
ubyte[] keyStream;
Undocumented in source.
state
uint[] state;
workingIV
const(ubyte)[] workingIV;
Undocumented in source.
workingKey
const(ubyte)[] workingKey;
Undocumented in source.

Inherited Members

From StreamCipher

returnByte
ubyte returnByte(ubyte input)

Process one byte of input.

Meta