mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-15 02:11:43 -06:00
4.27 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
31e7b924e8
commit
d66cf2fcf3
@@ -10,17 +10,22 @@
|
||||
|
||||
#define HW 5
|
||||
|
||||
// Sha1 implementation in RAR before version 3.60 has bug:
|
||||
// it changes data bytes in some cases.
|
||||
// So this class supports both versions: normal_SHA and rar3Mode
|
||||
|
||||
struct CSHA1
|
||||
{
|
||||
UInt32 m_State[5];
|
||||
UInt64 m_Count;
|
||||
unsigned char _buffer[64];
|
||||
|
||||
void Transform(const UInt32 data[16]);
|
||||
void WriteByteBlock();
|
||||
void Transform(UInt32 data[16], bool returnRes = false);
|
||||
void WriteByteBlock(bool returnRes = false);
|
||||
|
||||
public:
|
||||
void Init();
|
||||
void Update(const Byte *data, size_t size);
|
||||
void Update(Byte *data, size_t size, bool rar350Mode = false);
|
||||
void Final(Byte *digest);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user