ESP8266
sha1.h
1 
9 /* ================ sha1.h ================ */
10 /*
11  SHA-1 in C
12  By Steve Reid <steve@edmweb.com>
13  100% Public Domain
14 */
15 
16 #ifndef SHA1_H_
17 #define SHA1_H_
18 
19 typedef struct {
20  uint32_t state[5];
21  uint32_t count[2];
22  unsigned char buffer[64];
23 } SHA1_CTX;
24 
25 void SHA1Transform(uint32_t state[5], uint8_t buffer[64]);
26 void SHA1Init(SHA1_CTX* context);
27 void SHA1Update(SHA1_CTX* context, uint8_t* data, uint32_t len);
28 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
29 
30 #endif /* SHA1_H_ */
31 
32 /* ================ end of sha1.h ================ */
Definition: sha1.h:19