diff options
Diffstat (limited to 'src/block/idea')
-rw-r--r-- | src/block/idea/idea.cpp | 6 | ||||
-rw-r--r-- | src/block/idea/idea.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/block/idea/idea.cpp b/src/block/idea/idea.cpp index 15062abdf..61a938c57 100644 --- a/src/block/idea/idea.cpp +++ b/src/block/idea/idea.cpp @@ -160,4 +160,10 @@ void IDEA::key_schedule(const byte key[], size_t) DK[0] = mul_inv(EK[48]); } +void IDEA::clear() + { + zap(EK); + zap(DK); + } + } diff --git a/src/block/idea/idea.h b/src/block/idea/idea.h index 03ecb1f03..da5dc4cb6 100644 --- a/src/block/idea/idea.h +++ b/src/block/idea/idea.h @@ -21,7 +21,7 @@ class BOTAN_DLL IDEA : 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(); DK.clear(); } + void clear(); std::string name() const { return "IDEA"; } BlockCipher* clone() const { return new IDEA; } protected: |