6 #ifndef CRYPTOPP_CAST_H 7 #define CRYPTOPP_CAST_H 20 static const word32 S[8][256];
26 static const char *StaticAlgorithmName() {
return "CAST-128";}
35 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
42 class CRYPTOPP_NO_VTABLE Enc :
public Base
45 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
48 class CRYPTOPP_NO_VTABLE Dec :
public Base
51 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
62 static const char *StaticAlgorithmName() {
return "CAST-256";}
71 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
72 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
75 static const word32 t_m[8][24];
76 static const unsigned int t_r[8][24];
78 static void Omega(
int i, word32 kappa[8]);
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Classes and functions for secure memory allocations.
Inherited by block ciphers with fixed block size.
Classes and functions for implementing secret key algorithms.
Inherited by keyed algorithms with variable key length.
Provides class member functions to access BlockCipher constants.
Crypto++ library namespace.
Interface for retrieving values given their names.