1
0

sha1.hpp 394 B

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