Update Debian Vcs-* fields to point to git repository
[onak.git] / sha1.h
1 /*
2  SHA-1 in C
3
4  By Steve Reid <steve@edmweb.com>, with small changes to make it
5  fit into mutt by Thomas Roessler <roessler@does-not-exist.org>.
6
7 */
8
9 #ifndef _SHA1_H
10 # define _SHA1_H
11
12 #include <stdint.h>
13 #include <sys/types.h>
14
15 struct sha1_ctx {
16   uint32_t state[5];
17   uint32_t count[2];
18   unsigned char buffer[64];
19 };
20
21 void sha1_init(struct sha1_ctx *ctx);
22 void sha1_update(struct sha1_ctx *ctx, unsigned length, const uint8_t *data);
23 void sha1_digest(struct sha1_ctx *ctx, unsigned length, uint8_t *digest);
24
25 # define SHA1_Transform SHA1Transform
26 # define SHA1_Init SHA1Init
27 # define SHA1_Update SHA1Update
28 # define SHA1_Final SHA1Final
29
30 # define SHA_DIGEST_LENGTH 20
31
32 #endif
33