mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 22:07:08 -06:00
28 lines
460 B
C
Executable File
28 lines
460 B
C
Executable File
// sha1.h
|
|
// This file is based on public domain
|
|
// Steve Reid and Wei Dai's code from Crypto++
|
|
|
|
#ifndef __RAR_SHA1
|
|
#define __RAR_SHA1
|
|
|
|
#include <stddef.h>
|
|
#include "../../../Common/Types.h"
|
|
|
|
#define HW 5
|
|
|
|
struct CSHA1
|
|
{
|
|
UInt32 m_State[5];
|
|
UInt64 m_Count;
|
|
unsigned char _buffer[64];
|
|
|
|
void Transform(const UInt32 data[16]);
|
|
void WriteByteBlock();
|
|
|
|
void Init();
|
|
void Update(const Byte *data, size_t size);
|
|
void Final(Byte *digest);
|
|
};
|
|
|
|
#endif
|