6 #ifndef CRYPTOPP_TWOFISH_H 7 #define CRYPTOPP_TWOFISH_H 17 static const char *StaticAlgorithmName() {
return "Twofish";}
26 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
29 static word32 h0(word32 x,
const word32 *key,
unsigned int kLen);
30 static word32 h(word32 x,
const word32 *key,
unsigned int kLen);
32 static const byte q[2][256];
33 static const word32 mds[4][256];
39 class CRYPTOPP_NO_VTABLE Enc :
public Base
42 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
45 class CRYPTOPP_NO_VTABLE Dec :
public Base
48 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Interface for one direction (encryption or decryption) of 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 ciphers with fixed number of rounds.
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.