Lines Matching refs:sctx
46 struct poly1305_simd_desc_ctx *sctx = shash_desc_ctx(desc); in poly1305_simd_init() local
48 sctx->uset = false; in poly1305_simd_init()
50 sctx->wset = false; in poly1305_simd_init()
70 struct poly1305_simd_desc_ctx *sctx; in poly1305_simd_blocks() local
74 sctx = container_of(dctx, struct poly1305_simd_desc_ctx, base); in poly1305_simd_blocks()
84 if (unlikely(!sctx->wset)) { in poly1305_simd_blocks()
85 if (!sctx->uset) { in poly1305_simd_blocks()
86 memcpy(sctx->u, dctx->r, sizeof(sctx->u)); in poly1305_simd_blocks()
87 poly1305_simd_mult(sctx->u, dctx->r); in poly1305_simd_blocks()
88 sctx->uset = true; in poly1305_simd_blocks()
90 memcpy(sctx->u + 5, sctx->u, sizeof(sctx->u)); in poly1305_simd_blocks()
91 poly1305_simd_mult(sctx->u + 5, dctx->r); in poly1305_simd_blocks()
92 memcpy(sctx->u + 10, sctx->u + 5, sizeof(sctx->u)); in poly1305_simd_blocks()
93 poly1305_simd_mult(sctx->u + 10, dctx->r); in poly1305_simd_blocks()
94 sctx->wset = true; in poly1305_simd_blocks()
97 poly1305_4block_avx2(dctx->h, src, dctx->r, blocks, sctx->u); in poly1305_simd_blocks()
103 if (unlikely(!sctx->uset)) { in poly1305_simd_blocks()
104 memcpy(sctx->u, dctx->r, sizeof(sctx->u)); in poly1305_simd_blocks()
105 poly1305_simd_mult(sctx->u, dctx->r); in poly1305_simd_blocks()
106 sctx->uset = true; in poly1305_simd_blocks()
109 poly1305_2block_sse2(dctx->h, src, dctx->r, blocks, sctx->u); in poly1305_simd_blocks()