Lines Matching refs:ctx
43 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(parent);
59 tweak = ctx->tweak;
68 child = ctx->child;
161 const struct xts_tfm_ctx *ctx =
181 skcipher_request_set_tfm(subreq, ctx->child);
241 const struct xts_tfm_ctx *ctx =
249 skcipher_request_set_tfm(subreq, ctx->child);
255 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv);
298 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
306 ctx->child = child;
310 crypto_free_skcipher(ctx->child);
314 ctx->tweak = tweak;
324 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
326 crypto_free_skcipher(ctx->child);
327 crypto_free_cipher(ctx->tweak);
341 struct xts_instance_ctx *ctx;
355 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
359 ctx = skcipher_instance_ctx(inst);
361 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst),
365 if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)",
369 err = crypto_grab_skcipher(&ctx->spawn,
371 ctx->name, 0, mask);
377 alg = crypto_skcipher_spawn_alg(&ctx->spawn);
400 len = strscpy(ctx->name, cipher_name + 4, sizeof(ctx->name));
404 if (ctx->name[len - 1] != ')')
407 ctx->name[len - 1] = 0;
410 "xts(%s)", ctx->name) >= CRYPTO_MAX_ALG_NAME) {