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

DES Class Reference

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

#include <des.h>

Inheritance diagram for DES:

FixedBlockSize FixedKeyLength BlockTransformation DESDecryption DESEncryption List of all members.

Public Methods

 DES (const byte *userKey,CipherDir)
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...

void RawProcessBlock (word32 &l,word32 &r)const

Protected Attributes

SecBlock<word32> k

Static Protected Attributes

const word32 Spbox [8][64]

Detailed Description

base class, do not use directly.

Definition at line 20 of file des.h.


Constructor & Destructor Documentation

DES::DES ( const byte * key,
CipherDir dir )
 

Definition at line 189 of file des.cpp.


Member Function Documentation

void DES::ProcessBlock ( byte * inoutBlock ) const [inline, virtual]
 

encrypt or decrypt one block in place.

Precondition:
size of inoutBlock == BlockSize()

Reimplemented from BlockTransformation.

Definition at line 26 of file des.h.

void DES::ProcessBlock ( const byte * inBlock,
byte * outBlock ) const [virtual]
 

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

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

Reimplemented from BlockTransformation.

Definition at line 367 of file des.cpp.

Referenced by DES_EDE3_Decryption::ProcessBlock(), DES_EDE3_Encryption::ProcessBlock(), DES_EDE2_Decryption::ProcessBlock(), DES_EDE2_Encryption::ProcessBlock(), DES_XEX3_Decryption::ProcessBlock(), and DES_XEX3_Encryption::ProcessBlock().

void DES::RawProcessBlock ( word32 & l_,
word32 & r_ ) const
 

Definition at line 333 of file des.cpp.

Referenced by DES_EDE3_Decryption::ProcessBlock(), DES_EDE3_Encryption::ProcessBlock(), DES_EDE2_Decryption::ProcessBlock(), and DES_EDE2_Encryption::ProcessBlock().


Member Data Documentation

const word32 DES::Spbox[8][64] [static, protected]
 

Definition at line 8 of file dessp.cpp.

SecBlock< word32 > DES::k [protected]
 

Definition at line 35 of file des.h.


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