commit | cd14cc1079771ece34fce5b30d47c7b273ee56e5 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Jul 30 10:59:33 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Jul 30 10:59:33 2007 +0200 |
tree | 0604341663e653e274b202f59336659177dee0ac | |
parent | 61f821f16cf27d8742e09b3a137c933cd0085e9b [diff] [blame] |
Add sha256 and sha512 checksums That should suffice... Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/sha256.h b/sha256.h new file mode 100644 index 0000000..a3ca0e6 --- /dev/null +++ b/sha256.h
@@ -0,0 +1,13 @@ +#ifndef FIO_SHA256_H +#define FIO_SHA256_H + +struct sha256_ctx { + uint32_t count[2]; + uint32_t state[8]; + uint8_t *buf; +}; + +void sha256_init(struct sha256_ctx *); +void sha256_update(struct sha256_ctx *, const uint8_t *, unsigned int); + +#endif