Patch from Frank Cusack to add support for MSCHAPv2.
[ppp.git] / pppd / sha1.h
1 /* sha1.h */
2
3 #ifndef __SHA1_INCLUDE_
4
5 typedef struct {
6     unsigned long state[5];
7     unsigned long count[2];
8     unsigned char buffer[64];
9 } SHA1_CTX;
10
11 #define SHA1_SIGNATURE_SIZE 20
12
13 void SHA1_Transform(unsigned long[5], const unsigned char[64]);
14 void SHA1_Init(SHA1_CTX *);
15 void SHA1_Update(SHA1_CTX *, const unsigned char *, unsigned int);
16 void SHA1_Final(unsigned char[20], SHA1_CTX *);
17
18 #define __SHA1_INCLUDE_
19 #endif /* __SHA1_INCLUDE_ */