Lines Matching defs:ctx
18 struct s390_sha_ctx *ctx = shash_desc_ctx(desc);
23 index = ctx->count % bsize;
24 ctx->count += len;
31 memcpy(ctx->buf + index, data, bsize - index);
32 cpacf_kimd(ctx->func, ctx->state, ctx->buf, bsize);
41 cpacf_kimd(ctx->func, ctx->state, data, n);
47 memcpy(ctx->buf + index , data, len);
74 struct s390_sha_ctx *ctx = shash_desc_ctx(desc);
80 n = ctx->count % bsize;
81 bits = ctx->count * 8;
82 mbl_offset = s390_crypto_shash_parmsize(ctx->func);
89 switch (ctx->func) {
92 memcpy(ctx->state + mbl_offset, &bits, sizeof(bits));
99 memset(ctx->state + mbl_offset, 0x00, sizeof(bits));
101 memcpy(ctx->state + mbl_offset, &bits, sizeof(bits));
112 cpacf_klmd(ctx->func, ctx->state, ctx->buf, n);
115 memcpy(out, ctx->state, crypto_shash_digestsize(desc->tfm));
117 memset(ctx, 0, sizeof *ctx);