blob: f8b2112aedb1ecc50ada88cd13a7e7cc1050295c [file] [log] [blame]
Jens Axboecd14cc12007-07-30 10:59:33 +02001#ifndef FIO_SHA512_H
2#define FIO_SHA512_H
3
Jens Axboe25dfa842012-02-29 10:01:34 +01004struct fio_sha512_ctx {
Jens Axboecd14cc12007-07-30 10:59:33 +02005 uint64_t state[8];
6 uint32_t count[4];
7 uint8_t *buf;
8 uint64_t W[80];
9};
10
Jens Axboe25dfa842012-02-29 10:01:34 +010011void fio_sha512_init(struct fio_sha512_ctx *);
12void fio_sha512_update(struct fio_sha512_ctx *, const uint8_t *, unsigned int);
Jens Axboecd14cc12007-07-30 10:59:33 +020013
14#endif