mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
23.01
This commit is contained in:
@@ -54,7 +54,7 @@ void CData::SetPassword(const Byte *data, unsigned size)
|
||||
Keys[3] = 0xA4E7F123L;
|
||||
|
||||
Byte psw[128];
|
||||
MY_memset_0_ARRAY(psw);
|
||||
Z7_memset_0_ARRAY(psw);
|
||||
if (size != 0)
|
||||
{
|
||||
if (size >= sizeof(psw))
|
||||
@@ -99,22 +99,22 @@ void CData::CryptBlock(Byte *buf, bool encrypt)
|
||||
B = D; D = TB;
|
||||
}
|
||||
|
||||
SetUi32(buf + 0, C ^ Keys[0]);
|
||||
SetUi32(buf + 4, D ^ Keys[1]);
|
||||
SetUi32(buf + 8, A ^ Keys[2]);
|
||||
SetUi32(buf + 12, B ^ Keys[3]);
|
||||
SetUi32(buf + 0, C ^ Keys[0])
|
||||
SetUi32(buf + 4, D ^ Keys[1])
|
||||
SetUi32(buf + 8, A ^ Keys[2])
|
||||
SetUi32(buf + 12, B ^ Keys[3])
|
||||
|
||||
UpdateKeys(encrypt ? buf : inBuf);
|
||||
}
|
||||
|
||||
STDMETHODIMP CDecoder::Init()
|
||||
Z7_COM7F_IMF(CDecoder::Init())
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static const UInt32 kBlockSize = 16;
|
||||
|
||||
STDMETHODIMP_(UInt32) CDecoder::Filter(Byte *data, UInt32 size)
|
||||
Z7_COM7F_IMF2(UInt32, CDecoder::Filter(Byte *data, UInt32 size))
|
||||
{
|
||||
if (size == 0)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user