Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ARC4 Class Reference

Alleged RC4. More...

#include <arc4.h>

Inheritance diagram for ARC4:

RandomNumberGenerator StreamCipher VariableKeyLength MARC4 List of all members.

Public Methods

 ARC4 (const byte *userKey,unsigned int keyLength=DEFAULT_KEYLENGTH)
 ~ARC4 ()
byte GenerateByte ()
 generate new random byte and return it. More...

byte ProcessByte (byte input)
 encrypt or decrypt one byte. More...

void ProcessString (byte *outString,const byte *inString,unsigned int length)
 encrypt or decrypt an array of bytes of specified length, may assume inString != outString. More...

void ProcessString (byte *inoutString,unsigned int length)
 encrypt or decrypt an array of bytes of specified length in place. More...


Detailed Description

Alleged RC4.

Definition at line 10 of file arc4.h.


Constructor & Destructor Documentation

ARC4::ARC4 ( const byte * key,
unsigned int keyLen = DEFAULT_KEYLENGTH )
 

Definition at line 14 of file arc4.cpp.

ARC4::~ARC4 ( )
 

Definition at line 34 of file arc4.cpp.


Member Function Documentation

byte ARC4::GenerateByte ( ) [virtual]
 

generate new random byte and return it.

Reimplemented from RandomNumberGenerator.

Definition at line 40 of file arc4.cpp.

Referenced by ProcessByte().

byte ARC4::ProcessByte ( byte input ) [virtual]
 

encrypt or decrypt one byte.

Reimplemented from StreamCipher.

Definition at line 51 of file arc4.cpp.

void ARC4::ProcessString ( byte * inoutString,
unsigned int length ) [virtual]
 

encrypt or decrypt an array of bytes of specified length in place.

Reimplemented from StreamCipher.

Definition at line 77 of file arc4.cpp.

void ARC4::ProcessString ( byte * outString,
const byte * inString,
unsigned int length ) [virtual]
 

encrypt or decrypt an array of bytes of specified length, may assume inString != outString.

Reimplemented from StreamCipher.

Definition at line 56 of file arc4.cpp.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:40 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000