]> git.saurik.com Git - redis.git/blob - src/sha1.h
Scripting: add helper functions redis.error_reply() and redis.status_reply().
[redis.git] / src / sha1.h
1 /* ================ sha1.h ================ */
2 /*
3 SHA-1 in C
4 By Steve Reid <steve@edmweb.com>
5 100% Public Domain
6 */
7
8 typedef struct {
9 u_int32_t state[5];
10 u_int32_t count[2];
11 unsigned char buffer[64];
12 } SHA1_CTX;
13
14 void SHA1Transform(u_int32_t state[5], const unsigned char buffer[64]);
15 void SHA1Init(SHA1_CTX* context);
16 void SHA1Update(SHA1_CTX* context, const unsigned char* data, u_int32_t len);
17 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);