Lines Matching refs:block
38 u32 block[MD4_BLOCK_WORDS]; member
135 le32_to_cpu_array(ctx->block, ARRAY_SIZE(ctx->block)); in md4_transform_helper()
136 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
155 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
160 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
165 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
172 while (len >= sizeof(mctx->block)) { in md4_update()
173 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update()
175 data += sizeof(mctx->block); in md4_update()
176 len -= sizeof(mctx->block); in md4_update()
179 memcpy(mctx->block, data, len); in md4_update()
188 char *p = (char *)mctx->block + offset; in md4_final()
195 p = (char *)mctx->block; in md4_final()
200 mctx->block[14] = mctx->byte_count << 3; in md4_final()
201 mctx->block[15] = mctx->byte_count >> 29; in md4_final()
202 le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - in md4_final()
204 md4_transform(mctx->hash, mctx->block); in md4_final()