This commit is contained in:
Igor Pavlov
2021-07-22 23:00:14 +01:00
committed by Kornel
parent 4a960640a3
commit 585698650f
619 changed files with 34904 additions and 10859 deletions

View File

@@ -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);
}
};
}}