diff options
Diffstat (limited to 'src/block/rc2')
-rw-r--r-- | src/block/rc2/rc2.cpp | 5 | ||||
-rw-r--r-- | src/block/rc2/rc2.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/block/rc2/rc2.cpp b/src/block/rc2/rc2.cpp index 548c2f095..d7c76a7a6 100644 --- a/src/block/rc2/rc2.cpp +++ b/src/block/rc2/rc2.cpp @@ -139,6 +139,11 @@ void RC2::key_schedule(const byte key[], size_t length) load_le<u16bit>(&K[0], &L[0], 64); } +void RC2::clear() + { + zap(K); + } + /* * Return the code of the effective key bits */ diff --git a/src/block/rc2/rc2.h b/src/block/rc2/rc2.h index 223c48792..ae41c9ce2 100644 --- a/src/block/rc2/rc2.h +++ b/src/block/rc2/rc2.h @@ -28,7 +28,7 @@ class BOTAN_DLL RC2 : public Block_Cipher_Fixed_Params<8, 1, 32> */ static byte EKB_code(size_t bits); - void clear() { K.clear(); } + void clear(); std::string name() const { return "RC2"; } BlockCipher* clone() const { return new RC2; } private: |