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