Lines Matching defs:ctx
41 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
43 *ctx = (struct ghash_desc_ctx){};
50 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
51 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE;
53 ctx->count += len;
62 memcpy(ctx->buf + partial, src, p);
71 pmull_ghash_update(blocks, ctx->digest, src, key,
72 partial ? ctx->buf : NULL);
78 memcpy(ctx->buf + partial, src, len);
84 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
85 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE;
90 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial);
93 pmull_ghash_update(1, ctx->digest, ctx->buf, key, NULL);
96 put_unaligned_be64(ctx->digest[1], dst);
97 put_unaligned_be64(ctx->digest[0], dst + 8);
99 *ctx = (struct ghash_desc_ctx){};