X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=crc%2Fsha512.c;h=e069a4489e5816dfcd817bf1c32fab2d6acb5504;hp=9268a4900e01006ddae9ca2c6fc745a5e146e523;hb=25dfa848abbb6c35b4d45fabd5a8e82cb77fb285;hpb=02efadeb8b05144bcf2fc7796e1da2e7db211d00;ds=sidebyside diff --git a/crc/sha512.c b/crc/sha512.c index 9268a490..e069a448 100644 --- a/crc/sha512.c +++ b/crc/sha512.c @@ -146,7 +146,7 @@ static void sha512_transform(uint64_t *state, uint64_t *W, const uint8_t *input) a = b = c = d = e = f = g = h = t1 = t2 = 0; } -void sha512_init(struct sha512_ctx *sctx) +void fio_sha512_init(struct fio_sha512_ctx *sctx) { sctx->state[0] = H0; sctx->state[1] = H1; @@ -159,8 +159,8 @@ void sha512_init(struct sha512_ctx *sctx) sctx->count[0] = sctx->count[1] = sctx->count[2] = sctx->count[3] = 0; } -void sha512_update(struct sha512_ctx *sctx, const uint8_t *data, - unsigned int len) +void fio_sha512_update(struct fio_sha512_ctx *sctx, const uint8_t *data, + unsigned int len) { unsigned int i, idx, part_len;