mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-12 18:11:35 -06:00
Update to 7-Zip 17.00 Beta
This commit is contained in:
@@ -42,6 +42,8 @@ public:
|
||||
STDMETHOD(CryptoSetPassword)(const Byte *data, UInt32 size);
|
||||
};
|
||||
|
||||
const unsigned kAesPadAllign = AES_BLOCK_SIZE;
|
||||
|
||||
class CDecoder: public CBaseCoder
|
||||
{
|
||||
UInt32 _ivSize;
|
||||
@@ -51,6 +53,12 @@ public:
|
||||
MY_UNKNOWN_IMP1(ICryptoSetPassword)
|
||||
HRESULT ReadHeader(ISequentialInStream *inStream, UInt32 crc, UInt64 unpackSize);
|
||||
HRESULT Init_and_CheckPassword(bool &passwOK);
|
||||
UInt32 GetPadSize(UInt32 packSize32) const
|
||||
{
|
||||
// Padding is to align to blockSize of cipher.
|
||||
// Change it, if is not AES
|
||||
return kAesPadAllign - (packSize32 & (kAesPadAllign - 1));
|
||||
}
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user