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

PanamaCipher Class Template Reference

Panama Stream Cipher. More...

#include <panama.h>

Inheritance diagram for PanamaCipher:

Panama StreamCipher FixedKeyLength List of all members.

Public Types

enum  { HIGHFIRST = H, IVLENGTH = 32 }

Public Methods

 PanamaCipher (const byte *key,const byte *iv=NULL)
byte ProcessByte (byte input)
 encrypt or decrypt one byte. More...

void ProcessString (byte *inoutString,unsigned int length)
 encrypt or decrypt an array of bytes of specified length in place. 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...


Protected Attributes

SecBlock<word32> m_buf
unsigned int m_leftOver

Static Protected Methods

void CorrectEndianess (word32 *out,const word32 *in,unsigned int byteCount)

Detailed Description

template<bool H = false> class PanamaCipher

Panama Stream Cipher.

Definition at line 50 of file panama.h.


Member Enumeration Documentation

template<bool H = false>
anonymous enum
 

Definition at line 53 of file panama.h.


Constructor & Destructor Documentation

template<bool H>
PanamaCipher< H >::PanamaCipher<H> ( const byte * key,
const byte * iv = NULL )
 

Definition at line 124 of file panama.cpp.


Member Function Documentation

template<bool H = false>
void PanamaCipher<H>::CorrectEndianess ( word32 * out,
const word32 * in,
unsigned int byteCount ) [inline, static, protected]
 

Definition at line 63 of file panama.h.

template<bool H = false>
byte PanamaCipher<H>::ProcessByte ( byte input ) [inline, virtual]
 

encrypt or decrypt one byte.

Reimplemented from StreamCipher.

Definition at line 56 of file panama.h.

template<bool H>
void PanamaCipher< H >::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 143 of file panama.cpp.

template<bool H = false>
void PanamaCipher<H>::ProcessString ( byte * inoutString,
unsigned int length ) [inline, virtual]
 

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

Reimplemented from StreamCipher.

Definition at line 58 of file panama.h.


Member Data Documentation

template<bool H = false>
SecBlock< word32 > PanamaCipher<H>::m_buf [protected]
 

Definition at line 71 of file panama.h.

template<bool H = false>
unsigned int PanamaCipher<H>::m_leftOver [protected]
 

Definition at line 72 of file panama.h.


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