removed old FreeS/WAN cvs revision entries
[strongswan.git] / src / libfreeswan / ipsec_sha1.h
1 /*
2 * RCSID $Id: ipsec_sha1.h,v 1.1 2004/03/15 20:35:25 as Exp $
3 */
4
5 /*
6 * Here is the original comment from the distribution:
7
8 SHA-1 in C
9 By Steve Reid <steve@edmweb.com>
10 100% Public Domain
11
12 * Adapted for use by the IPSEC code by John Ioannidis
13 */
14
15
16 #ifndef _IPSEC_SHA1_H_
17 #define _IPSEC_SHA1_H_
18
19 typedef struct
20 {
21 __u32 state[5];
22 __u32 count[2];
23 __u8 buffer[64];
24 } SHA1_CTX;
25
26 void SHA1Transform(__u32 state[5], __u8 buffer[64]);
27 void SHA1Init(void *context);
28 void SHA1Update(void *context, unsigned char *data, __u32 len);
29 void SHA1Final(unsigned char digest[20], void *context);
30
31
32 #endif /* _IPSEC_SHA1_H_ */