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

Diamond2Base Class Reference

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

#include <diamond.h>

Inheritance diagram for Diamond2Base:

FixedBlockSize VariableKeyLength BlockTransformation Diamond2Decryption Diamond2Encryption List of all members.

Public Types

enum  { DEFAULT_ROUNDS = 10 }

Public Methods

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

Protected Types

enum  { ROUNDSIZE = 4096 }

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 14 of file diamond.h.


Member Enumeration Documentation

anonymous enum
 

Definition at line 20 of file diamond.h.

anonymous enum [protected]
 

Definition at line 23 of file diamond.h.


Constructor & Destructor Documentation

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

Definition at line 139 of file diamond.cpp.


Member Function Documentation

void Diamond2Base::ipermute ( byte * x ) [inline, static, protected]
 

Definition at line 331 of file diamond.cpp.

void Diamond2Base::permute ( byte * x ) [inline, static, protected]
 

Definition at line 275 of file diamond.cpp.

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

Definition at line 148 of file diamond.cpp.


Member Data Documentation

const int Diamond2Base::numrounds [protected]
 

Definition at line 26 of file diamond.h.

SecByteBlock Diamond2Base::s [protected]
 

Definition at line 27 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