aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/des/desx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/des/desx.h')
-rw-r--r--src/block/des/desx.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/block/des/desx.h b/src/block/des/desx.h
index 993eca86b..4ff41328f 100644
--- a/src/block/des/desx.h
+++ b/src/block/des/desx.h
@@ -21,14 +21,12 @@ class BOTAN_DLL DESX : public Block_Cipher_Fixed_Params<8, 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() { des.clear(); zeroise(K1); zeroise(K2); }
+ void clear() { des.clear(); K1.clear(); K2.clear(); }
std::string name() const { return "DESX"; }
BlockCipher* clone() const { return new DESX; }
-
- DESX() : K1(8), K2(8) {}
private:
void key_schedule(const byte[], size_t);
- SecureVector<byte> K1, K2;
+ secure_vector<byte> K1, K2;
DES des;
};