10 NAMESPACE_BEGIN(CryptoPP)
15 static const char *StaticAlgorithmName() {
return "TEA";}
24 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
31 class CRYPTOPP_NO_VTABLE Enc :
public Base
34 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
37 class CRYPTOPP_NO_VTABLE Dec :
public Base
40 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
54 static const char *StaticAlgorithmName() {
return "XTEA";}
63 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
70 class CRYPTOPP_NO_VTABLE Enc :
public Base
73 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
76 class CRYPTOPP_NO_VTABLE Dec :
public Base
79 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
90 static const char *StaticAlgorithmName() {
return "BTEA";}
97 class CRYPTOPP_NO_VTABLE Base :
public AlgorithmImpl<SimpleKeyingInterfaceImpl<BlockCipher, BTEA_Info>, BTEA_Info>,
public BTEA_Info
100 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms)
103 GetUserKey(BIG_ENDIAN_ORDER, m_k.begin(), 4, key, KEYLENGTH);
106 unsigned int BlockSize()
const {
return m_blockSize;}
110 unsigned int m_blockSize;
113 class CRYPTOPP_NO_VTABLE Enc :
public Base
116 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
119 class CRYPTOPP_NO_VTABLE Dec :
public Base
122 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
to be inherited by keyed algorithms with fixed key length
These objects usually should not be used directly. See CipherModeDocumentation instead.
interface for one direction (encryption or decryption) of a block cipher
corrected Block TEA (as described in "xxtea").
to be inherited by block ciphers with fixed block size
to be 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
interface for retrieving values given their names