Annotation of src/include/sha1.h, Revision 1.5
1.5 ! millert 1: /* $OpenBSD: ip_sha1.h,v 1.3 1997/06/21 00:09:20 deraadt Exp $ */
! 2:
! 3: /*
! 4: * SHA-1 in C
! 5: * By Steve Reid <steve@edmweb.com>
! 6: * 100% Public Domain
! 7: */
1.1 millert 8:
1.2 millert 9: #ifndef _SHA1_H
10: #define _SHA1_H
11:
1.1 millert 12: typedef struct {
1.5 ! millert 13: u_int32_t state[5];
! 14: u_int32_t count[2];
! 15: u_char buffer[64];
! 16: } SHA1_CTX;
! 17:
! 18: void SHA1Transform __P((u_int32_t state[5], unsigned char buffer[64]));
! 19: void SHA1Init __P((SHA1_CTX* context));
! 20: void SHA1Update __P((SHA1_CTX* context, unsigned char* data, unsigned int len));
! 21: void SHA1Final __P((unsigned char digest[20], SHA1_CTX* context));
1.2 millert 22:
23: #endif /* _SHA1_H */