18 static const char *StaticAlgorithmName() {
return "TEA";}
27 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
34 class CRYPTOPP_NO_VTABLE Enc :
public Base
37 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
40 class CRYPTOPP_NO_VTABLE Dec :
public Base
43 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
57 static const char *StaticAlgorithmName() {
return "XTEA";}
66 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
73 class CRYPTOPP_NO_VTABLE Enc :
public Base
76 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
79 class CRYPTOPP_NO_VTABLE Dec :
public Base
82 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
93 static const char *StaticAlgorithmName() {
return "BTEA";}
100 class CRYPTOPP_NO_VTABLE Base :
public AlgorithmImpl<SimpleKeyingInterfaceImpl<BlockCipher, BTEA_Info>, BTEA_Info>,
public BTEA_Info 103 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms)
105 CRYPTOPP_UNUSED(length), CRYPTOPP_UNUSED(params);
107 GetUserKey(BIG_ENDIAN_ORDER, m_k.begin(), 4, key,
KEYLENGTH);
110 unsigned int BlockSize()
const {
return m_blockSize;}
114 unsigned int m_blockSize;
117 class CRYPTOPP_NO_VTABLE Enc :
public Base
120 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
123 class CRYPTOPP_NO_VTABLE Dec :
public Base
126 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
Inherited by keyed algorithms with fixed key length.
Utility functions for the Crypto++ library.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
static const int KEYLENGTH
The default key length used by the cipher provided as a constant.
Interface for one direction (encryption or decryption) of a block cipher.
Classes and functions for secure memory allocations.
corrected Block TEA (as described in "xxtea").
Inherited by block ciphers with fixed block size.
Inherited by ciphers with variable number of rounds.
int GetIntValueWithDefault(const char *name, int defaultValue) const
Get a named value with type int, with default.
Classes and functions for implementing secret key algorithms.
const char * BlockSize()
int, in bytes
Provides class member functions to access BlockCipher constants.
Crypto++ library namespace.
Interface for retrieving values given their names.
Base class for identifying alogorithm.