mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 12:11:38 -06:00
22 lines
409 B
C
Executable File
22 lines
409 B
C
Executable File
// sha1.h
|
|
// This file from UnRar sources
|
|
|
|
#ifndef _RAR_SHA1_
|
|
#define _RAR_SHA1_
|
|
|
|
#include "../../../Common/Types.h"
|
|
|
|
#define HW 5
|
|
|
|
typedef struct {
|
|
UInt32 state[5];
|
|
UInt32 count[2];
|
|
unsigned char buffer[64];
|
|
} hash_context;
|
|
|
|
void hash_initial( hash_context * c );
|
|
void hash_process( hash_context * c, unsigned char * data, unsigned len );
|
|
void hash_final( hash_context * c, UInt32[HW] );
|
|
|
|
#endif
|