@@ -53,7 +53,7 @@ static int chksum_update(struct shash_desc *desc, const u8 *data,
{
struct chksum_desc_ctx *ctx = shash_desc_ctx(desc);
- ctx->crc = crc_t10dif_generic(ctx->crc, data, length);
+ ctx->crc = crc_t10dif_update(ctx->crc, data, length);
return 0;
}
@@ -68,7 +68,7 @@ static int chksum_final(struct shash_desc *desc, u8 *out)
static int __chksum_finup(__u16 *crcp, const u8 *data, unsigned int len,
u8 *out)
{
- *(__u16 *)out = crc_t10dif_generic(*crcp, data, len);
+ *(__u16 *)out = crc_t10dif_update(*crcp, data, len);
return 0;
}
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- crypto/crct10dif_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0