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

Diamond2LiteBase Class Reference

base class, do not use directly. More...

#include <diamond.h>

Inheritance diagram for Diamond2LiteBase:

FixedBlockSize VariableKeyLength BlockTransformation Diamond2LiteDecryption Diamond2LiteEncryption List of all members.

Public Types

enum  { DEFAULT_ROUNDS = 8 }

Public Methods

 Diamond2LiteBase (const byte *key,unsigned int key_size,unsigned int rounds,CipherDir direction)

Protected Types

enum  { ROUNDSIZE = 2048 }

Protected Methods

void substitute (int round,byte *y)const

Protected Attributes

const int numrounds
SecByteBlock s

Static Protected Methods

void permute (byte *)
void ipermute (byte *)

Detailed Description

base class, do not use directly.

Definition at line 60 of file diamond.h.


Member Enumeration Documentation

anonymous enum [protected]
 

Definition at line 69 of file diamond.h.

anonymous enum
 

Definition at line 66 of file diamond.h.


Constructor & Destructor Documentation

Diamond2LiteBase::Diamond2LiteBase ( const byte * key,
unsigned int key_size,
unsigned int rounds,
CipherDir direction )
 

Definition at line 421 of file diamond.cpp.


Member Function Documentation

void Diamond2LiteBase::ipermute ( byte * b ) [inline, static, protected]
 

Definition at line 501 of file diamond.cpp.

void Diamond2LiteBase::permute ( byte * a ) [inline, static, protected]
 

Definition at line 477 of file diamond.cpp.

void Diamond2LiteBase::substitute ( int round,
byte * y ) const [inline, protected]
 

Definition at line 430 of file diamond.cpp.


Member Data Documentation

const int Diamond2LiteBase::numrounds [protected]
 

Definition at line 71 of file diamond.h.

SecByteBlock Diamond2LiteBase::s [protected]
 

Definition at line 72 of file diamond.h.


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