Salsa20

DJB's Salsa20 (and XSalsa20)

Members

Functions

cipher
void cipher(const(ubyte)* input, ubyte* output, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
clone
Salsa20 clone()
Undocumented in source. Be warned that the author may not have intended to support it.
keySchedule
void keySchedule(const(ubyte)* key, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
keySpec
KeyLengthSpecification keySpec()
Undocumented in source. Be warned that the author may not have intended to support it.
setIv
void setIv(const(ubyte)* iv, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
validIvLength
bool validIvLength(size_t iv_len)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

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

Variables

m_buffer
SecureVector!ubyte m_buffer;
Undocumented in source.
m_position
size_t m_position;
Undocumented in source.
m_state
SecureVector!uint m_state;
Undocumented in source.

Inherited Members

From StreamCipher

cipher
void cipher(const(ubyte)* input, ubyte* output, size_t len)

Encrypt or decrypt a message

cipher1
void cipher1(const(ubyte)* buf, size_t len)

Encrypt or decrypt a message

cipher1
void cipher1(ubyte[] buf)

Encrypt or decrypt a message

encipher
void encipher(Vector!(ubyte, Alloc) inoutput)
Undocumented in source. Be warned that the author may not have intended to support it.
encrypt
void encrypt(Vector!(ubyte, Alloc) inoutput)
Undocumented in source. Be warned that the author may not have intended to support it.
decrypt
void decrypt(Vector!(ubyte, Alloc) inoutput)
Undocumented in source. Be warned that the author may not have intended to support it.
setIv
void setIv(const(ubyte)* iv, size_t iv_len)

Resync the cipher using the IV

validIvLength
bool validIvLength(size_t iv_len)
clone
StreamCipher clone()

Get a new object representing the same algorithm as this

Meta