• Home
  • Raw
  • Download

Lines Matching refs:base

248 	rctx->complete(&req->base, err);  in cryptd_skcipher_complete()
255 static void cryptd_skcipher_encrypt(struct crypto_async_request *base, in cryptd_skcipher_encrypt() argument
258 struct skcipher_request *req = skcipher_request_cast(base); in cryptd_skcipher_encrypt()
277 req->base.complete = rctx->complete; in cryptd_skcipher_encrypt()
283 static void cryptd_skcipher_decrypt(struct crypto_async_request *base, in cryptd_skcipher_decrypt() argument
286 struct skcipher_request *req = skcipher_request_cast(base); in cryptd_skcipher_decrypt()
305 req->base.complete = rctx->complete; in cryptd_skcipher_decrypt()
319 rctx->complete = req->base.complete; in cryptd_skcipher_enqueue()
320 req->base.complete = compl; in cryptd_skcipher_enqueue()
322 return cryptd_enqueue_request(queue, &req->base); in cryptd_skcipher_enqueue()
396 err = cryptd_init_instance(skcipher_crypto_instance(inst), &alg->base); in cryptd_create_skcipher()
400 inst->alg.base.cra_flags |= CRYPTO_ALG_ASYNC | in cryptd_create_skcipher()
401 (alg->base.cra_flags & CRYPTO_ALG_INTERNAL); in cryptd_create_skcipher()
407 inst->alg.base.cra_ctxsize = sizeof(struct cryptd_skcipher_ctx); in cryptd_create_skcipher()
472 rctx->complete = req->base.complete; in cryptd_hash_enqueue()
473 req->base.complete = compl; in cryptd_hash_enqueue()
475 return cryptd_enqueue_request(queue, &req->base); in cryptd_hash_enqueue()
486 rctx->complete(&req->base, err); in cryptd_hash_complete()
508 req->base.complete = rctx->complete; in cryptd_hash_init()
531 req->base.complete = rctx->complete; in cryptd_hash_update()
552 req->base.complete = rctx->complete; in cryptd_hash_final()
573 req->base.complete = rctx->complete; in cryptd_hash_finup()
599 req->base.complete = rctx->complete; in cryptd_hash_digest()
662 err = cryptd_init_instance(ahash_crypto_instance(inst), &alg->base); in cryptd_create_hash()
666 inst->alg.halg.base.cra_flags |= CRYPTO_ALG_ASYNC | in cryptd_create_hash()
667 (alg->base.cra_flags & (CRYPTO_ALG_INTERNAL| in cryptd_create_hash()
671 inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx); in cryptd_create_hash()
673 inst->alg.halg.base.cra_init = cryptd_hash_init_tfm; in cryptd_create_hash()
674 inst->alg.halg.base.cra_exit = cryptd_hash_exit_tfm; in cryptd_create_hash()
740 compl(&req->base, err); in cryptd_aead_crypt()
753 req = container_of(areq, struct aead_request, base); in cryptd_aead_encrypt()
763 req = container_of(areq, struct aead_request, base); in cryptd_aead_decrypt()
774 rctx->complete = req->base.complete; in cryptd_aead_enqueue()
775 req->base.complete = compl; in cryptd_aead_enqueue()
776 return cryptd_enqueue_request(queue, &req->base); in cryptd_aead_enqueue()
849 err = cryptd_init_instance(aead_crypto_instance(inst), &alg->base); in cryptd_create_aead()
853 inst->alg.base.cra_flags |= CRYPTO_ALG_ASYNC | in cryptd_create_aead()
854 (alg->base.cra_flags & CRYPTO_ALG_INTERNAL); in cryptd_create_aead()
855 inst->alg.base.cra_ctxsize = sizeof(struct cryptd_aead_ctx); in cryptd_create_aead()
920 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { in cryptd_alloc_skcipher()
928 return container_of(tfm, struct cryptd_skcipher, base); in cryptd_alloc_skcipher()
934 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); in cryptd_skcipher_child()
942 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); in cryptd_skcipher_queued()
950 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); in cryptd_free_skcipher()
953 crypto_free_skcipher(&tfm->base); in cryptd_free_skcipher()
970 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { in cryptd_alloc_ahash()
984 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); in cryptd_ahash_child()
999 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); in cryptd_ahash_queued()
1007 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); in cryptd_free_ahash()
1010 crypto_free_ahash(&tfm->base); in cryptd_free_ahash()
1027 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { in cryptd_alloc_aead()
1042 ctx = crypto_aead_ctx(&tfm->base); in cryptd_aead_child()
1049 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base); in cryptd_aead_queued()
1057 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base); in cryptd_free_aead()
1060 crypto_free_aead(&tfm->base); in cryptd_free_aead()