Lines Matching refs:sctx
37 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha1_init() local
39 sctx->state[0] = SHA1_H0; in sha1_init()
40 sctx->state[1] = SHA1_H1; in sha1_init()
41 sctx->state[2] = SHA1_H2; in sha1_init()
42 sctx->state[3] = SHA1_H3; in sha1_init()
43 sctx->state[4] = SHA1_H4; in sha1_init()
44 sctx->count = 0; in sha1_init()
45 sctx->func = KIMD_SHA_1; in sha1_init()
52 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha1_export() local
55 octx->count = sctx->count; in sha1_export()
56 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha1_export()
57 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); in sha1_export()
63 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha1_import() local
66 sctx->count = ictx->count; in sha1_import()
67 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in sha1_import()
68 memcpy(sctx->buf, ictx->buffer, sizeof(ictx->buffer)); in sha1_import()
69 sctx->func = KIMD_SHA_1; in sha1_import()