Update to 7-Zip 17.00 Beta

This commit is contained in:
Tino Reichardt
2017-04-30 14:14:14 +02:00
parent 54389d6e2f
commit aa5ba75da0
451 changed files with 15746 additions and 8574 deletions

View File

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