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