X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Fsha256.c;h=3a72a5bfb2e14bbcc0d718acfa9e296ec9c48ded;hb=bb71ecd67de0ddcc30531615a24bfa69e40d35a4;hp=dcb1677274a128cd584a19d4144a776531c3b187;hpb=2b13e716c0921356c0930522718e00b8df34293a;p=fio.git diff --git a/crc/sha256.c b/crc/sha256.c index dcb16772..3a72a5bf 100644 --- a/crc/sha256.c +++ b/crc/sha256.c @@ -227,7 +227,7 @@ static void sha256_transform(uint32_t *state, const uint8_t *input) memset(W, 0, 64 * sizeof(uint32_t)); } -void sha256_init(struct sha256_ctx *sctx) +void fio_sha256_init(struct fio_sha256_ctx *sctx) { sctx->state[0] = H0; sctx->state[1] = H1; @@ -240,8 +240,8 @@ void sha256_init(struct sha256_ctx *sctx) sctx->count[0] = sctx->count[1] = 0; } -void sha256_update(struct sha256_ctx *sctx, const uint8_t *data, - unsigned int len) +void fio_sha256_update(struct fio_sha256_ctx *sctx, const uint8_t *data, + unsigned int len) { unsigned int i, idx, part_len;