17 void RawSetKey(
CipherDir direction,
const byte *userKey);
18 void RawProcessBlock(word32 &l, word32 &r)
const;
21 static const word32 Spbox[8][64];
30 static const char * StaticAlgorithmName() {
return "DES";}
43 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
44 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
49 static bool CheckKeyParityBits(
const byte *key);
51 static void CorrectKeyParityBits(byte *key);
60 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return "DES-EDE2";}
66 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<DES_EDE2_Info>
69 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
70 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
84 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return "DES-EDE3";}
90 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<DES_EDE3_Info>
93 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
94 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
97 RawDES m_des1, m_des2, m_des3;
108 static const char *StaticAlgorithmName() {
return "DES-XEX3";}
117 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
118 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
Inherited by keyed algorithms with fixed key length.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
CipherDir
Specifies a direction for a cipher to operate.
Classes and functions for secure memory allocations.
Inherited by block ciphers with fixed block size.
Classes and functions for implementing secret key algorithms.
Provides class member functions to key a block cipher.
Provides class member functions to access BlockCipher constants.
Crypto++ library namespace.
Interface for retrieving values given their names.