aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/xtea/xtea.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-17 18:18:15 +0000
committerlloyd <[email protected]>2009-09-17 18:18:15 +0000
commitb086b54c16383da44eebfa8f14d55e6e50dc87b8 (patch)
tree5ff5b7fb36a12904ddbaeda4cb4c2c59e78e2b28 /src/block/xtea/xtea.h
parent87e25c7e270a52fda8c39296be01918bb6aa75d6 (diff)
parent7e839d037119055b572f40ce0cd882f85583db2e (diff)
propagate from branch 'net.randombit.botan.1_8' (head 1f4729658b70a340064bc9a33c923a44ecab84d8)
to branch 'net.randombit.botan' (head b9ca6596a127964cb9795d22bc2a5642fab5de84)
Diffstat (limited to 'src/block/xtea/xtea.h')
-rw-r--r--src/block/xtea/xtea.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/xtea/xtea.h b/src/block/xtea/xtea.h
index d9c6066cb..de265818d 100644
--- a/src/block/xtea/xtea.h
+++ b/src/block/xtea/xtea.h
@@ -18,13 +18,15 @@ namespace Botan {
class BOTAN_DLL XTEA : public BlockCipher
{
public:
+ void encrypt_n(const byte in[], byte out[], u32bit blocks) const;
+ void decrypt_n(const byte in[], byte out[], u32bit blocks) const;
+
void clear() throw() { EK.clear(); }
std::string name() const { return "XTEA"; }
BlockCipher* clone() const { return new XTEA; }
+
XTEA() : BlockCipher(8, 16) {}
private:
- void enc(const byte[], byte[]) const;
- void dec(const byte[], byte[]) const;
void key_schedule(const byte[], u32bit);
SecureBuffer<u32bit, 64> EK;
};