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

OFB Class Reference

Output-Feedback mode. More...

#include <modes.h>

Inheritance diagram for OFB:

RandomNumberGenerator StreamCipher List of all members.

Public Methods

 OFB (const BlockTransformation &cipher,const byte *IV,int feedBackSize=0)
 cipher should be an *encryption* object. More...

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

Output-Feedback mode.

Definition at line 75 of file modes.h.


Constructor & Destructor Documentation

OFB::OFB ( const BlockTransformation & cipher,
const byte * IV,
int feedBackSize = 0 ) [inline]
 

cipher should be an *encryption* object.

Definition at line 79 of file modes.h.


Member Function Documentation

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

generate new random byte and return it.

Reimplemented from RandomNumberGenerator.

Definition at line 82 of file modes.h.

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

encrypt or decrypt one byte.

Reimplemented from StreamCipher.

Definition at line 89 of file modes.h.

void OFB::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 62 of file modes.cpp.

void OFB::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 modes.cpp.


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