sha1.h - pubsubhubbubblub - pubsubhubbub client implementation
HTML git clone git://git.codemadness.org/pubsubhubbubblub
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
sha1.h (334B)
---
1 #include <stdint.h>
2
3 typedef struct sha1 {
4 uint64_t len; /* processed message length */
5 uint32_t h[5]; /* hash state */
6 uint8_t buf[64]; /* message block buffer */
7 } SHA_CTX;
8
9 #define SHA_DIGEST_LENGTH 20
10
11 int SHA1_Init(SHA_CTX *);
12 int SHA1_Update(SHA_CTX *, const void *, size_t);
13 int SHA1_Final(unsigned char *, SHA_CTX *);