]> pd.if.org Git - zpackage/blob - lib/sha256.h
remove stray debug fprintf
[zpackage] / lib / sha256.h
1 #ifndef SHA256_H_
2 #define SHA256_H_
3
4 #include <stdint.h>
5
6 struct sha256_state {
7     uint64_t length;
8     uint32_t state[8], curlen;
9     unsigned char buf[64];
10 };
11
12 int sha256_init(struct sha256_state *md);
13 int sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen);
14 int sha256_done(struct sha256_state *md, unsigned char *hash);
15
16 #endif