Lines Matching refs:sctx
23 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()
34 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_export() local
37 octx->rsiz = sctx->count; in sha3_256_export()
38 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_256_export()
39 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_256_export()
46 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_import() local
49 sctx->count = ictx->rsiz; in sha3_256_import()
50 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_256_import()
51 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_256_import()
52 sctx->func = CPACF_KIMD_SHA3_256; in sha3_256_import()
59 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_import() local
62 sctx->count = ictx->rsiz; in sha3_224_import()
63 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_224_import()
64 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_224_import()
65 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_import()
90 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_init() local
92 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_224_init()
93 sctx->count = 0; in sha3_224_init()
94 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_init()