Jens Axboe | cd14cc1 | 2007-07-30 10:59:33 +0200 | [diff] [blame] | 1 | #ifndef FIO_SHA256_H |
| 2 | #define FIO_SHA256_H |
| 3 | |
Jens Axboe | 25dfa84 | 2012-02-29 10:01:34 +0100 | [diff] [blame] | 4 | struct fio_sha256_ctx { |
Jens Axboe | cd14cc1 | 2007-07-30 10:59:33 +0200 | [diff] [blame] | 5 | uint32_t count[2]; |
| 6 | uint32_t state[8]; |
| 7 | uint8_t *buf; |
| 8 | }; |
| 9 | |
Jens Axboe | 25dfa84 | 2012-02-29 10:01:34 +0100 | [diff] [blame] | 10 | void fio_sha256_init(struct fio_sha256_ctx *); |
| 11 | void fio_sha256_update(struct fio_sha256_ctx *, const uint8_t *, unsigned int); |
Jens Axboe | cd14cc1 | 2007-07-30 10:59:33 +0200 | [diff] [blame] | 12 | |
| 13 | #endif |