Commit | Line | Data |
---|---|---|
cd14cc10 JA |
1 | #ifndef FIO_SHA256_H |
2 | #define FIO_SHA256_H | |
3 | ||
25dfa848 | 4 | struct fio_sha256_ctx { |
cd14cc10 JA |
5 | uint32_t count[2]; |
6 | uint32_t state[8]; | |
7 | uint8_t *buf; | |
8 | }; | |
9 | ||
25dfa848 JA |
10 | void fio_sha256_init(struct fio_sha256_ctx *); |
11 | void fio_sha256_update(struct fio_sha256_ctx *, const uint8_t *, unsigned int); | |
cd14cc10 JA |
12 | |
13 | #endif |