Lines Matching refs:sctx

22 	struct s390_sha_ctx *sctx = shash_desc_ctx(desc);  in sha3_256_init()  local
25 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_256_init()
26 sctx->count = 0; in sha3_256_init()
27 sctx->func = CPACF_KIMD_SHA3_256; in sha3_256_init()
28 sctx->first_message_part = 1; in sha3_256_init()
35 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_export() local
38 octx->rsiz = sctx->count; in sha3_256_export()
39 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_256_export()
40 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_256_export()
41 octx->partial = sctx->first_message_part; in sha3_256_export()
48 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_import() local
51 sctx->count = ictx->rsiz; in sha3_256_import()
52 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_256_import()
53 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_256_import()
54 sctx->first_message_part = ictx->partial; in sha3_256_import()
55 sctx->func = CPACF_KIMD_SHA3_256; in sha3_256_import()
62 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_import() local
65 sctx->count = ictx->rsiz; in sha3_224_import()
66 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_224_import()
67 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_224_import()
68 sctx->first_message_part = ictx->partial; in sha3_224_import()
69 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_import()
94 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_init() local
97 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_224_init()
98 sctx->count = 0; in sha3_224_init()
99 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_init()
100 sctx->first_message_part = 1; in sha3_224_init()