Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2021-07-23 01:00:14 +0300
committerKornel <kornel@geekhood.net>2021-07-23 01:00:14 +0300
commit585698650f7257d2cefa6a3a2a49d5bbe84fd9b2 (patch)
tree8900be42e892a440bbd1063804b0557288c2f97f /CPP/7zip/Crypto/RarAes.h
parent4a960640a340a848a2d2c27f19b339c2c3d3f734 (diff)
21.0221.02
Diffstat (limited to 'CPP/7zip/Crypto/RarAes.h')
-rw-r--r--CPP/7zip/Crypto/RarAes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/CPP/7zip/Crypto/RarAes.h b/CPP/7zip/Crypto/RarAes.h
index 645da1af..2bb68667 100644
--- a/CPP/7zip/Crypto/RarAes.h
+++ b/CPP/7zip/Crypto/RarAes.h
@@ -44,6 +44,15 @@ public:
HRESULT SetDecoderProperties2(const Byte *data, UInt32 size);
CDecoder();
+
+ ~CDecoder() { Wipe(); }
+ void Wipe()
+ {
+ _password.Wipe();
+ MY_memset_0_ARRAY(_salt);
+ MY_memset_0_ARRAY(_key);
+ MY_memset_0_ARRAY(_iv);
+ }
// void SetRar350Mode(bool rar350Mode) { _rar350Mode = rar350Mode; }
};