Lines Matching refs:ctx
44 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(parent);
60 tweak = ctx->tweak;
69 child = ctx->child;
162 const struct xts_tfm_ctx *ctx =
182 skcipher_request_set_tfm(subreq, ctx->child);
242 const struct xts_tfm_ctx *ctx =
250 skcipher_request_set_tfm(subreq, ctx->child);
256 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv);
299 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
307 ctx->child = child;
311 crypto_free_skcipher(ctx->child);
315 ctx->tweak = tweak;
325 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
327 crypto_free_skcipher(ctx->child);
328 crypto_free_cipher(ctx->tweak);
344 struct xts_instance_ctx *ctx;
358 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
362 ctx = skcipher_instance_ctx(inst);
364 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst),
372 err = crypto_grab_skcipher(&ctx->spawn,
380 alg = crypto_skcipher_spawn_alg(&ctx->spawn);
420 err = crypto_grab_cipher(&ctx->tweak_spawn,