aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/xtea/xtea.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/xtea/xtea.h')
-rw-r--r--src/block/xtea/xtea.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/block/xtea/xtea.h b/src/block/xtea/xtea.h
index d9c6066cb..9982d0712 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 clear() throw() { EK.clear(); }
+ void encrypt_n(const byte in[], byte out[], u32bit blocks) const;
+ void decrypt_n(const byte in[], byte out[], u32bit blocks) const;
+
+ void clear() { 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;
+ protected:
void key_schedule(const byte[], u32bit);
SecureBuffer<u32bit, 64> EK;
};