diff options
Diffstat (limited to 'src/block/camellia')
-rw-r--r-- | src/block/camellia/camellia.cpp | 15 | ||||
-rw-r--r-- | src/block/camellia/camellia.h | 6 |
2 files changed, 18 insertions, 3 deletions
diff --git a/src/block/camellia/camellia.cpp b/src/block/camellia/camellia.cpp index bea5d4c51..a5d70d736 100644 --- a/src/block/camellia/camellia.cpp +++ b/src/block/camellia/camellia.cpp @@ -376,4 +376,19 @@ void Camellia_256::key_schedule(const byte key[], size_t length) Camellia_F::key_schedule(SK, key, length); } +void Camellia_128::clear() + { + zap(SK); + } + +void Camellia_192::clear() + { + zap(SK); + } + +void Camellia_256::clear() + { + zap(SK); + } + } diff --git a/src/block/camellia/camellia.h b/src/block/camellia/camellia.h index 4db115f2c..09f420765 100644 --- a/src/block/camellia/camellia.h +++ b/src/block/camellia/camellia.h @@ -21,7 +21,7 @@ class BOTAN_DLL Camellia_128 : public Block_Cipher_Fixed_Params<16, 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() { SK.clear(); } + void clear(); std::string name() const { return "Camellia-128"; } BlockCipher* clone() const { return new Camellia_128; } private: @@ -39,7 +39,7 @@ class BOTAN_DLL Camellia_192 : public Block_Cipher_Fixed_Params<16, 24> 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() { SK.clear(); } + void clear(); std::string name() const { return "Camellia-192"; } BlockCipher* clone() const { return new Camellia_192; } private: @@ -57,7 +57,7 @@ class BOTAN_DLL Camellia_256 : public Block_Cipher_Fixed_Params<16, 32> 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() { SK.clear(); } + void clear(); std::string name() const { return "Camellia-256"; } BlockCipher* clone() const { return new Camellia_256; } private: |