Lines Matching refs:mctx
130 struct md5_state *mctx = shash_desc_ctx(desc); in md5_init() local
132 mctx->hash[0] = MD5_H0; in md5_init()
133 mctx->hash[1] = MD5_H1; in md5_init()
134 mctx->hash[2] = MD5_H2; in md5_init()
135 mctx->hash[3] = MD5_H3; in md5_init()
136 mctx->byte_count = 0; in md5_init()
143 struct md5_state *mctx = shash_desc_ctx(desc); in md5_update() local
146 mctx->byte_count += len; in md5_update()
149 md5_transform_helper(mctx, block); in md5_update()
154 mctx->byte_count -= len; in md5_update()
161 struct md5_state *mctx = shash_desc_ctx(desc); in md5_finup() local
176 md5_transform_helper(mctx, block); in md5_finup()
182 mctx->byte_count += len; in md5_finup()
183 block[14] = mctx->byte_count << 3; in md5_finup()
184 block[15] = mctx->byte_count >> 29; in md5_finup()
186 md5_transform(mctx->hash, block); in md5_finup()
188 cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(u32)); in md5_finup()
189 memcpy(out, mctx->hash, sizeof(mctx->hash)); in md5_finup()