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;
180 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
181 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null);
183 skcipher_request_set_sync_tfm(skreq, ctx->null);
196 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
199 struct crypto_skcipher *enc = ctx->enc;
234 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
255 skcipher_request_set_tfm(skreq, ctx->enc);
283 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc);
285 struct crypto_ahash *auth = ctx->auth;
311 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm);
331 ctx->auth = auth;
332 ctx->enc = enc;
333 ctx->null = null;
356 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm);
358 crypto_free_ahash(ctx->auth);
359 crypto_free_skcipher(ctx->enc);
365 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst);
367 crypto_drop_skcipher(&ctx->enc);
368 crypto_drop_ahash(&ctx->auth);
377 struct authenc_instance_ctx *ctx;
387 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
390 ctx = aead_instance_ctx(inst);
392 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst),
396 auth = crypto_spawn_ahash_alg(&ctx->auth);
399 err = crypto_grab_skcipher(&ctx->enc, aead_crypto_instance(inst),
403 enc = crypto_spawn_skcipher_alg(&ctx->enc);
405 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask,