Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dcrct10dif_generic.c34 __u16 crc; member
46 ctx->crc = 0; in chksum_init()
56 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update()
64 *(__u16 *)out = ctx->crc; in chksum_final()
68 static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument
70 *(__u16 *)out = crc_t10dif_generic(crc, data, len); in __chksum_finup()
79 return __chksum_finup(ctx->crc, data, len, out); in chksum_finup()
Dcrct10dif_common.c70 __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len) in crc_t10dif_generic() argument
75 crc = (crc << 8) ^ t10_dif_crc_table[((crc >> 8) ^ buffer[i]) & 0xff]; in crc_t10dif_generic()
77 return crc; in crc_t10dif_generic()
Dcrc32c_generic.c49 u32 crc; member
62 ctx->crc = mctx->key; in chksum_init()
90 ctx->crc = __crc32c_le(ctx->crc, data, length); in chksum_update()
98 put_unaligned_le32(~ctx->crc, out); in chksum_final()
113 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
DKconfig647 a crypto transform. This allows for faster crc t10 diff