Lines Matching refs:sctx
22 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_init() local
24 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_256_init()
25 sctx->count = 0; in sha3_256_init()
26 sctx->func = CPACF_KIMD_SHA3_256; in sha3_256_init()
33 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_export() local
36 octx->rsiz = sctx->count; in sha3_256_export()
37 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_256_export()
38 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_256_export()
45 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_import() local
48 sctx->count = ictx->rsiz; in sha3_256_import()
49 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_256_import()
50 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_256_import()
51 sctx->func = CPACF_KIMD_SHA3_256; in sha3_256_import()
58 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_import() local
61 sctx->count = ictx->rsiz; in sha3_224_import()
62 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_224_import()
63 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_224_import()
64 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_import()
89 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_init() local
91 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_224_init()
92 sctx->count = 0; in sha3_224_init()
93 sctx->func = CPACF_KIMD_SHA3_224; in sha3_224_init()