X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Fsha1.h;h=416199baffa7cbfc0f2098a1e55320a474292a1a;hb=2c477f4fe896aa059196eac73e569c47050fdfcc;hp=af4165af47ab6f606b78e4a3fe777dc9c9233ce7;hpb=7c353ceb3257b132f4c98326046b42201e070731;p=fio.git diff --git a/crc/sha1.h b/crc/sha1.h index af4165af..416199ba 100644 --- a/crc/sha1.h +++ b/crc/sha1.h @@ -1,20 +1,22 @@ #ifndef FIO_SHA1 #define FIO_SHA1 +#include + /* * Based on the Mozilla SHA1 (see mozilla-sha1/sha1.h), * optimized to do word accesses rather than byte accesses, * and to avoid unnecessary copies into the context array. */ -struct sha1_ctx { +struct fio_sha1_ctx { uint32_t *H; unsigned int W[16]; unsigned long long size; }; -void sha1_init(struct sha1_ctx *); -void sha1_update(struct sha1_ctx *, const void *dataIn, unsigned long len); -void sha1_final(unsigned char hashout[20], struct sha1_ctx *); +void fio_sha1_init(struct fio_sha1_ctx *); +void fio_sha1_update(struct fio_sha1_ctx *, const void *dataIn, unsigned long len); +void fio_sha1_final(struct fio_sha1_ctx *); #endif