Lines Matching refs:ctx
31 u8 ctx[];
47 u8 ctx[];
54 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent);
56 __be64 *consts = PTR_ALIGN((void *)ctx->ctx,
62 err = crypto_cipher_setkey(ctx->child, inkey, keylen);
68 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts);
108 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc);
110 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs;
112 ctx->len = 0;
124 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc);
127 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1);
131 if ((ctx->len + len) <= bs) {
132 memcpy(odds + ctx->len, p, len);
133 ctx->len += len;
138 memcpy(odds + ctx->len, p, bs - ctx->len);
139 len -= bs - ctx->len;
140 p += bs - ctx->len;
146 ctx->len = 0;
159 ctx->len = len;
170 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc);
173 u8 *consts = PTR_ALIGN((void *)tctx->ctx,
175 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1);
179 if (ctx->len != bs) {
181 u8 *p = odds + ctx->len;
186 rlen = bs - ctx->len - 1;
204 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
213 ctx->child = cipher;
221 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
228 ctx->child = cipher;
235 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
236 crypto_free_cipher(ctx->child);