Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
DES Class Reference

DES More...

+ Inheritance diagram for DES:

Public Types

typedef BlockCipherFinal< ENCRYPTION, Base > Encryption
 
typedef BlockCipherFinal< DECRYPTION, Base > Decryption
 

Static Public Member Functions

static bool CheckKeyParityBits (const byte *key)
 check DES key parity bits
 
static void CorrectKeyParityBits (byte *key)
 correct DES key parity bits
 
static const char * StaticAlgorithmName ()
 
static size_t StaticGetValidKeyLength (size_t keylength)
 The default key length for the cipher provided by a static function. More...
 

Static Public Attributes

static const int BLOCKSIZE
 The block size of the cipher provided as a constant.
 
static const int KEYLENGTH
 The default key length used by the cipher provided as a constant. More...
 
static const int MIN_KEYLENGTH
 The minimum key length used by the cipher provided as a constant. More...
 
static const int MAX_KEYLENGTH
 The maximum key length used by the cipher provided as a constant. More...
 
static const int DEFAULT_KEYLENGTH
 The default key length used by the cipher provided as a constant. More...
 
static const int IV_REQUIREMENT
 The default IV requirements for the cipher provided as a constant. More...
 
static const int IV_LENGTH
 The default IV length used by the cipher provided as a constant. More...
 

Detailed Description

DES

The DES implementation in Crypto++ ignores the parity bits (the least significant bits of each byte) in the key. However you can use CheckKeyParityBits() and CorrectKeyParityBits() to check or correct the parity bits if you wish.

Definition at line 38 of file des.h.

Member Function Documentation

static size_t FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::StaticGetValidKeyLength ( size_t  keylength)
inlinestaticinherited

The default key length for the cipher provided by a static function.

Parameters
keylengththe size of the key, in bytes

The default implementation returns KEYLENGTH. keylength is unused in the default implementation.

Definition at line 139 of file seckey.h.

Member Data Documentation

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::KEYLENGTH
staticinherited

The default key length used by the cipher provided as a constant.

KEYLENGTH is provided in bytes, not bits

Definition at line 118 of file seckey.h.

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::MIN_KEYLENGTH
staticinherited

The minimum key length used by the cipher provided as a constant.

MIN_KEYLENGTH is provided in bytes, not bits

Definition at line 121 of file seckey.h.

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::MAX_KEYLENGTH
staticinherited

The maximum key length used by the cipher provided as a constant.

MAX_KEYLENGTH is provided in bytes, not bits

Definition at line 124 of file seckey.h.

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::DEFAULT_KEYLENGTH
staticinherited

The default key length used by the cipher provided as a constant.

DEFAULT_KEYLENGTH is provided in bytes, not bits

Definition at line 127 of file seckey.h.

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::IV_REQUIREMENT
staticinherited

The default IV requirements for the cipher provided as a constant.

The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in cryptlib.h for allowed values.

Definition at line 131 of file seckey.h.

const int FixedKeyLength< N, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::IV_LENGTH
staticinherited

The default IV length used by the cipher provided as a constant.

IV_LENGTH is provided in bytes, not bits. The default implementation uses 0.

Definition at line 134 of file seckey.h.


The documentation for this class was generated from the following files: