18 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "TEA";}
29 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
37 class CRYPTOPP_NO_VTABLE Enc :
public Base
40 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
44 class CRYPTOPP_NO_VTABLE Dec :
public Base
47 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
61 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "XTEA";}
72 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
80 class CRYPTOPP_NO_VTABLE Enc :
public Base
83 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
87 class CRYPTOPP_NO_VTABLE Dec :
public Base
90 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
101 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "BTEA";}
110 class CRYPTOPP_NO_VTABLE Base :
public AlgorithmImpl<SimpleKeyingInterfaceImpl<BlockCipher, BTEA_Info>, BTEA_Info>,
public BTEA_Info 113 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms)
115 CRYPTOPP_UNUSED(length), CRYPTOPP_UNUSED(params);
120 unsigned int BlockSize()
const {
return m_blockSize;}
124 unsigned int m_blockSize;
128 class CRYPTOPP_NO_VTABLE Enc :
public Base
131 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
135 class CRYPTOPP_NO_VTABLE Dec :
public Base
138 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
int GetIntValueWithDefault(const char *name, int defaultValue) const
Get a named value with type int, with default.
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 algorithm provided as a constant.
Interface for one direction (encryption or decryption) of a block cipher.
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Inherited by algorithms with variable number of rounds.
Classes and functions for implementing secret key algorithms.
XTEA block cipher information.
TEA block cipher information.
const char * BlockSize()
int, in bytes
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
BTEA block cipher information.
Crypto++ library namespace.
Interface for retrieving values given their names.