Lines Matching refs:sctx
22 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_init() local
24 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_512_init()
25 sctx->count = 0; in sha3_512_init()
26 sctx->func = CPACF_KIMD_SHA3_512; in sha3_512_init()
33 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_export() local
36 octx->rsiz = sctx->count; in sha3_512_export()
37 octx->rsizw = sctx->count >> 32; in sha3_512_export()
39 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_512_export()
40 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_512_export()
47 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_import() local
52 sctx->count = ictx->rsiz; in sha3_512_import()
54 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_512_import()
55 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_512_import()
56 sctx->func = CPACF_KIMD_SHA3_512; in sha3_512_import()
63 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_384_import() local
68 sctx->count = ictx->rsiz; in sha3_384_import()
70 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_384_import()
71 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_384_import()
72 sctx->func = CPACF_KIMD_SHA3_384; in sha3_384_import()
99 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_384_init() local
101 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_384_init()
102 sctx->count = 0; in sha3_384_init()
103 sctx->func = CPACF_KIMD_SHA3_384; in sha3_384_init()