1 #ifndef _RAR_SHA1_
2 #define _RAR_SHA1_
3 
4 typedef struct {
5     uint32 state[5];
6     uint64 count;
7     unsigned char buffer[64];
8 } sha1_context;
9 
10 void sha1_init( sha1_context * c );
11 void sha1_process(sha1_context * c, const byte *data, size_t len);
12 void sha1_process_rar29(sha1_context *context, const unsigned char *data, size_t len);
13 void sha1_done( sha1_context * c, uint32 digest[5] );
14 
15 #endif
16