aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/xtea
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/xtea')
-rw-r--r--src/block/xtea/xtea.cpp5
-rw-r--r--src/block/xtea/xtea.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/block/xtea/xtea.cpp b/src/block/xtea/xtea.cpp
index b0c976b36..165a6ea6a 100644
--- a/src/block/xtea/xtea.cpp
+++ b/src/block/xtea/xtea.cpp
@@ -138,4 +138,9 @@ void XTEA::key_schedule(const byte key[], size_t)
}
}
+void XTEA::clear()
+ {
+ zap(EK);
+ }
+
}
diff --git a/src/block/xtea/xtea.h b/src/block/xtea/xtea.h
index 1d86bf5ce..42acc35a5 100644
--- a/src/block/xtea/xtea.h
+++ b/src/block/xtea/xtea.h
@@ -21,7 +21,7 @@ class BOTAN_DLL XTEA : public Block_Cipher_Fixed_Params<8, 16>
void encrypt_n(const byte in[], byte out[], size_t blocks) const;
void decrypt_n(const byte in[], byte out[], size_t blocks) const;
- void clear() { EK.clear(); }
+ void clear();
std::string name() const { return "XTEA"; }
BlockCipher* clone() const { return new XTEA; }
protected: