Crypto++
5.6.5
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
6 #ifndef CRYPTOPP_TWOFISH_H
7 #define CRYPTOPP_TWOFISH_H
18 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "Twofish";}
29 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
32 static word32 h0(word32 x,
const word32 *key,
unsigned int kLen);
33 static word32 h(word32 x,
const word32 *key,
unsigned int kLen);
35 static const byte q[2][256];
36 static const word32 mds[4][256];
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;
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Twofish block cipher information.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
Classes and functions for implementing secret key algorithms.
Crypto++ library namespace.
Interface for one direction (encryption or decryption) of a block cipher.
Interface for retrieving values given their names.
Inherited by algorithms with fixed number of rounds.
Inherited by keyed algorithms with variable key length.