Lines Matching defs:sctx
32 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
34 sctx->state[0] = SHA1_H0;
35 sctx->state[1] = SHA1_H1;
36 sctx->state[2] = SHA1_H2;
37 sctx->state[3] = SHA1_H3;
38 sctx->state[4] = SHA1_H4;
39 sctx->count = 0;
40 sctx->func = CPACF_KIMD_SHA_1;
47 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
50 octx->count = sctx->count;
51 memcpy(octx->state, sctx->state, sizeof(octx->state));
52 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer));
58 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
61 sctx->count = ictx->count;
62 memcpy(sctx->state, ictx->state, sizeof(ictx->state));
63 memcpy(sctx->buf, ictx->buffer, sizeof(ictx->buffer));
64 sctx->func = CPACF_KIMD_SHA_1;