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;