OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / pluto / sha1.h
1 /*
2 SHA-1 in C
3 By Steve Reid <steve@edmweb.com>
4 100% Public Domain
5 */
6
7 typedef struct {
8     u_int32_t state[5];
9     u_int32_t count[2];
10     unsigned char buffer[64];
11 } SHA1_CTX;
12
13 void SHA1Transform(u_int32_t state[5], const unsigned char buffer[64]);
14 void SHA1Init(SHA1_CTX* context);
15 void SHA1Update(SHA1_CTX* context, const unsigned char* data, u_int32_t len);
16 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);