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