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

CounterMode Class Reference

Counter-BE Mode. More...

#include <modes.h>

Inheritance diagram for CounterMode:

RandomNumberGenerator RandomAccessStreamCipher StreamCipher List of all members.

Public Methods

 CounterMode (const BlockTransformation &cipher,const byte *IV)
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...

void Seek (unsigned long position)

Detailed Description

Counter-BE Mode.

Definition at line 97 of file modes.h.


Constructor & Destructor Documentation

CounterMode::CounterMode ( const BlockTransformation & cipher,
const byte * IVin )
 

Definition at line 68 of file modes.cpp.


Member Function Documentation

byte CounterMode::GenerateByte ( ) [inline, virtual]
 

generate new random byte and return it.

Reimplemented from RandomNumberGenerator.

Definition at line 103 of file modes.h.

byte CounterMode::ProcessByte ( byte input ) [inline, virtual]
 

encrypt or decrypt one byte.

Reimplemented from StreamCipher.

Definition at line 110 of file modes.h.

void CounterMode::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 81 of file modes.cpp.

void CounterMode::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 75 of file modes.cpp.

void CounterMode::Seek ( unsigned long position ) [virtual]
 

Reimplemented from RandomAccessStreamCipher.

Definition at line 87 of file modes.cpp.


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