Lines Matching refs:sctx
21 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_init() local
23 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_512_init()
24 sctx->count = 0; in sha3_512_init()
25 sctx->func = CPACF_KIMD_SHA3_512; in sha3_512_init()
32 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_export() local
35 octx->rsiz = sctx->count; in sha3_512_export()
36 octx->rsizw = sctx->count >> 32; in sha3_512_export()
38 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_512_export()
39 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_512_export()
46 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_512_import() local
51 sctx->count = ictx->rsiz; in sha3_512_import()
53 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_512_import()
54 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_512_import()
55 sctx->func = CPACF_KIMD_SHA3_512; in sha3_512_import()
62 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_384_import() local
67 sctx->count = ictx->rsiz; in sha3_384_import()
69 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_384_import()
70 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_384_import()
71 sctx->func = CPACF_KIMD_SHA3_384; in sha3_384_import()
98 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_384_init() local
100 memset(sctx->state, 0, sizeof(sctx->state)); in sha3_384_init()
101 sctx->count = 0; in sha3_384_init()
102 sctx->func = CPACF_KIMD_SHA3_384; in sha3_384_init()