Annotation of src/include/sha1.h, Revision 1.8
1.8 ! millert 1: /* $OpenBSD: sha1.h,v 1.7 1997/07/12 20:06:01 millert Exp $ */
1.5 millert 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:
1.8 ! millert 18: void SHA1Transform __P((u_int32_t state[5], const u_char buffer[64]));
1.6 millert 19: void SHA1Init __P((SHA1_CTX *context));
1.8 ! millert 20: void SHA1Update __P((SHA1_CTX *context, const u_char *data, u_int len));
1.6 millert 21: void SHA1Final __P((u_char digest[20], SHA1_CTX *context));
1.7 millert 22: char *SHA1End __P((SHA1_CTX *, char *));
23: char *SHA1File __P((char *, char *));
24: char *SHA1Data __P((const u_char *, size_t, char *));
1.2 millert 25:
26: #endif /* _SHA1_H */