Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
19 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "TEA";}
32 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
41 class CRYPTOPP_NO_VTABLE Enc :
public Base
44 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
49 class CRYPTOPP_NO_VTABLE Dec :
public Base
52 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
67 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "XTEA";}
80 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
89 class CRYPTOPP_NO_VTABLE Enc :
public Base
92 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
97 class CRYPTOPP_NO_VTABLE Dec :
public Base
100 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
112 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "BTEA";}
123 class CRYPTOPP_NO_VTABLE Base :
public AlgorithmImpl<SimpleKeyingInterfaceImpl<BlockCipher, BTEA_Info>, BTEA_Info>,
public BTEA_Info
126 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms)
128 CRYPTOPP_UNUSED(length), CRYPTOPP_UNUSED(params);
133 unsigned int BlockSize()
const {
return m_blockSize;}
137 unsigned int m_blockSize;
142 class CRYPTOPP_NO_VTABLE Enc :
public Base
145 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
150 class CRYPTOPP_NO_VTABLE Dec :
public Base
153 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
XTEA block cipher information.
@ BIG_ENDIAN_ORDER
byte order is big-endian
int GetIntValueWithDefault(const char *name, int defaultValue) const
Get a named value with type int, with default.
TEA block cipher information.
Classes and functions for secure memory allocations.
static const int KEYLENGTH
The default key length used by the algorithm provided as a constant.
BTEA block cipher information.
Inherited by algorithms with fixed block size.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
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.
Classes and functions for implementing secret key algorithms.
Crypto++ library namespace.
Interface for one direction (encryption or decryption) of a block cipher.
Inherited by algorithms with variable number of rounds.
Interface for retrieving values given their names.
Base class for identifying alogorithm.