Lines Matching refs:ctx

87 	struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
88 struct crypto_ahash *auth = ctx->auth;
89 struct crypto_skcipher *enc = ctx->enc;
136 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
138 struct crypto_ahash *auth = ctx->auth;
179 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
180 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null);
182 skcipher_request_set_sync_tfm(skreq, ctx->null);
195 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
198 struct crypto_skcipher *enc = ctx->enc;
233 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
254 skcipher_request_set_tfm(skreq, ctx->enc);
281 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
283 struct crypto_ahash *auth = ctx->auth;
309 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm);
329 ctx->auth = auth;
330 ctx->enc = enc;
331 ctx->null = null;
354 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm);
356 crypto_free_ahash(ctx->auth);
357 crypto_free_skcipher(ctx->enc);
363 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst);
365 crypto_drop_skcipher(&ctx->enc);
366 crypto_drop_ahash(&ctx->auth);
375 struct authenc_instance_ctx *ctx;
385 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
388 ctx = aead_instance_ctx(inst);
390 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst),
394 auth = crypto_spawn_ahash_alg(&ctx->auth);
397 err = crypto_grab_skcipher(&ctx->enc, aead_crypto_instance(inst),
401 enc = crypto_spawn_skcipher_alg(&ctx->enc);
403 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask,