mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 12:11:38 -06:00
21.02
This commit is contained in:
@@ -27,6 +27,12 @@ struct CKeyInfo
|
||||
UInt32 KeySize;
|
||||
|
||||
void SetPassword(const Byte *data, UInt32 size);
|
||||
|
||||
~CKeyInfo() { Wipe(); }
|
||||
void Wipe()
|
||||
{
|
||||
MY_memset_0_ARRAY(MasterKey);
|
||||
}
|
||||
};
|
||||
|
||||
class CBaseCoder:
|
||||
@@ -58,6 +64,12 @@ public:
|
||||
// Change it, if is not AES
|
||||
return kAesPadAllign - (packSize32 & (kAesPadAllign - 1));
|
||||
}
|
||||
|
||||
~CDecoder() { Wipe(); }
|
||||
void Wipe()
|
||||
{
|
||||
MY_memset_0_ARRAY(_iv);
|
||||
}
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user