Lines Matching +full:data +full:- +full:out
4 * T10 Data Integrity Field CRC16 Crypto Transform using PCLMULQDQ Instructions
19 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 #include <linux/crc-t10dif.h>
47 ctx->crc = 0; in chksum_init()
52 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() argument
59 ctx->crc = crc_t10dif_pcl(ctx->crc, data, length); in chksum_update()
62 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update()
66 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument
70 *(__u16 *)out = ctx->crc; in chksum_final()
74 static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument
78 *(__u16 *)out = crc_t10dif_pcl(crc, data, len); in __chksum_finup()
81 *(__u16 *)out = crc_t10dif_generic(crc, data, len); in __chksum_finup()
85 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() argument
86 unsigned int len, u8 *out) in chksum_finup() argument
90 return __chksum_finup(ctx->crc, data, len, out); in chksum_finup()
93 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest() argument
94 unsigned int length, u8 *out) in chksum_digest() argument
96 return __chksum_finup(0, data, length, out); in chksum_digest()
109 .cra_driver_name = "crct10dif-pclmul",
125 return -ENODEV; in crct10dif_intel_mod_init()
143 MODULE_ALIAS_CRYPTO("crct10dif-pclmul");