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

Diamond2Encryption Class Reference

Diamond2. More...

#include <diamond.h>

Inheritance diagram for Diamond2Encryption:

Diamond2Base FixedBlockSize VariableKeyLength BlockTransformation List of all members.

Public Methods

 Diamond2Encryption (const byte *key,unsigned int key_size=DEFAULT_KEYLENGTH,unsigned int rounds=DEFAULT_ROUNDS)
void ProcessBlock (const byte *inBlock,byte *outBlock)const
 encrypt or decrypt one block, may assume inBlock != outBlock. More...

void ProcessBlock (byte *inoutBlock)const
 encrypt or decrypt one block in place. More...


Detailed Description

Diamond2.

Definition at line 38 of file diamond.h.


Constructor & Destructor Documentation

Diamond2Encryption::Diamond2Encryption ( const byte * key,
unsigned int key_size = DEFAULT_KEYLENGTH,
unsigned int rounds = DEFAULT_ROUNDS ) [inline]
 

Definition at line 41 of file diamond.h.


Member Function Documentation

void Diamond2Encryption::ProcessBlock ( byte * y ) const [virtual]
 

encrypt or decrypt one block in place.

Precondition:
size of inoutBlock == BlockSize()

Reimplemented from BlockTransformation.

Definition at line 389 of file diamond.cpp.

void Diamond2Encryption::ProcessBlock ( const byte * x,
byte * y ) const [virtual]
 

encrypt or decrypt one block, may assume inBlock != outBlock.

Precondition:
size of inBlock and outBlock == BlockSize()

Reimplemented from BlockTransformation.

Definition at line 399 of file diamond.cpp.


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