Searched refs:mctx (Results 1 – 5 of 5) sorted by relevance
49 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); in michael_init() local51 mctx->pending_len = 0; in michael_init()52 mctx->l = ctx->l; in michael_init()53 mctx->r = ctx->r; in michael_init()62 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); in michael_update() local64 if (mctx->pending_len) { in michael_update()65 int flen = 4 - mctx->pending_len; in michael_update()68 memcpy((u8 *)&mctx->pending + mctx->pending_len, data, flen); in michael_update()69 mctx->pending_len += flen; in michael_update()73 if (mctx->pending_len < 4) in michael_update()[all …]
141 struct md4_ctx *mctx = shash_desc_ctx(desc); in md4_init() local143 mctx->hash[0] = 0x67452301; in md4_init()144 mctx->hash[1] = 0xefcdab89; in md4_init()145 mctx->hash[2] = 0x98badcfe; in md4_init()146 mctx->hash[3] = 0x10325476; in md4_init()147 mctx->byte_count = 0; in md4_init()154 struct md4_ctx *mctx = shash_desc_ctx(desc); in md4_update() local155 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()157 mctx->byte_count += len; in md4_update()160 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()[all …]
131 struct md5_state *mctx = shash_desc_ctx(desc); in md5_init() local133 mctx->hash[0] = MD5_H0; in md5_init()134 mctx->hash[1] = MD5_H1; in md5_init()135 mctx->hash[2] = MD5_H2; in md5_init()136 mctx->hash[3] = MD5_H3; in md5_init()137 mctx->byte_count = 0; in md5_init()144 struct md5_state *mctx = shash_desc_ctx(desc); in md5_update() local145 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()147 mctx->byte_count += len; in md5_update()150 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()[all …]
59 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() local62 ctx->crc = mctx->key; in chksum_init()75 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); in chksum_setkey() local77 if (keylen != sizeof(mctx->key)) in chksum_setkey()79 mctx->key = get_unaligned_le32(key); in chksum_setkey()117 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest() local119 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest()124 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32c_cra_init() local126 mctx->key = ~0; in crc32c_cra_init()
39 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() local43 *mctx = get_unaligned_le32(key); in crc32_setkey()49 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() local52 *crcp = *mctx; in crc32_init()