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() local65 if (mctx->pending_len) { in michael_update()66 int flen = 4 - mctx->pending_len; in michael_update()69 memcpy(&mctx->pending[mctx->pending_len], data, flen); in michael_update()70 mctx->pending_len += flen; in michael_update()74 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 …]
134 struct md5_state *mctx = shash_desc_ctx(desc); in md5_init() local136 mctx->hash[0] = MD5_H0; in md5_init()137 mctx->hash[1] = MD5_H1; in md5_init()138 mctx->hash[2] = MD5_H2; in md5_init()139 mctx->hash[3] = MD5_H3; in md5_init()140 mctx->byte_count = 0; in md5_init()147 struct md5_state *mctx = shash_desc_ctx(desc); in md5_update() local148 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()150 mctx->byte_count += len; in md5_update()153 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()81 mctx->key = get_unaligned_le32(key); in chksum_setkey()119 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest() local121 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest()126 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32c_cra_init() local128 mctx->key = ~0; in crc32c_cra_init()
61 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() local67 *mctx = get_unaligned_le32(key); in crc32_setkey()73 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() local76 *crcp = *mctx; in crc32_init()