6 #define SHA256_DIGEST_SIZE 32
7 #define SHA256_BLOCK_SIZE 64
9 struct fio_sha256_ctx {
11 uint32_t state[SHA256_DIGEST_SIZE / 4];
15 void fio_sha256_init(struct fio_sha256_ctx *);
16 void fio_sha256_update(struct fio_sha256_ctx *, const uint8_t *, unsigned int);
17 void fio_sha256_final(struct fio_sha256_ctx *);