RC4

RC4 stream cipher

Constructors

this
this(size_t s)

Destructor

~this
~this()
Undocumented in source.

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
RC4 clone()
Undocumented in source. Be warned that the author may not have intended to support it.
generate
void generate()
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)* , size_t iv_len)
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_SKIP
size_t m_SKIP;
Undocumented in source.
m_X
ubyte m_X;
m_Y
ubyte m_Y;
Undocumented in source.
m_buffer
SecureVector!ubyte m_buffer;
Undocumented in source.
m_position
size_t m_position;
Undocumented in source.
m_state
SecureVector!ubyte 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