aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/kasumi
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/kasumi')
-rw-r--r--src/block/kasumi/kasumi.cpp5
-rw-r--r--src/block/kasumi/kasumi.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/block/kasumi/kasumi.cpp b/src/block/kasumi/kasumi.cpp
index ae21338c6..69f146ebb 100644
--- a/src/block/kasumi/kasumi.cpp
+++ b/src/block/kasumi/kasumi.cpp
@@ -226,4 +226,9 @@ void KASUMI::key_schedule(const byte key[], size_t)
}
}
+void KASUMI::clear()
+ {
+ zap(EK);
+ }
+
}
diff --git a/src/block/kasumi/kasumi.h b/src/block/kasumi/kasumi.h
index 571085612..b91a2eb77 100644
--- a/src/block/kasumi/kasumi.h
+++ b/src/block/kasumi/kasumi.h
@@ -21,7 +21,7 @@ class BOTAN_DLL KASUMI : 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 "KASUMI"; }
BlockCipher* clone() const { return new KASUMI; }
private: