Advertisement
Guest User

sha1.h

a guest
May 30th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #ifndef _SHA1_H
  2. #define _SHA1_H
  3.  
  4. #ifndef uint8
  5. #define uint8  unsigned char
  6. #endif
  7.  
  8. #ifndef uint32
  9. #define uint32 unsigned long int
  10. #endif
  11.  
  12. struct sha1_context
  13. {
  14.     uint32 total[2];
  15.     uint32 state[5];
  16.     uint8 buffer[64];
  17. };
  18.  
  19. void sha1_starts( struct sha1_context *ctx );
  20. void sha1_update( struct sha1_context *ctx, uint8 *input, uint32 length );
  21. void sha1_finish( struct sha1_context *ctx, uint8 digest[20] );
  22.  
  23. #endif /* sha1.h */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement