blob: c7aa28fd9f284672af80263fdbf2702c81acac66 [file] [log] [blame]
Jens Axboecd14cc12007-07-30 10:59:33 +02001#ifndef FIO_SHA256_H
2#define FIO_SHA256_H
3
Jens Axboe25dfa842012-02-29 10:01:34 +01004struct fio_sha256_ctx {
Jens Axboecd14cc12007-07-30 10:59:33 +02005 uint32_t count[2];
6 uint32_t state[8];
7 uint8_t *buf;
8};
9
Jens Axboe25dfa842012-02-29 10:01:34 +010010void fio_sha256_init(struct fio_sha256_ctx *);
11void fio_sha256_update(struct fio_sha256_ctx *, const uint8_t *, unsigned int);
Jens Axboecd14cc12007-07-30 10:59:33 +020012
13#endif