Lines Matching refs:alg
77 struct crypto_engine_alg *alg; in crypto_pump_requests() local
152 alg = container_of(async_req->tfm->__crt_alg, in crypto_pump_requests()
154 op = &alg->op; in crypto_pump_requests()
572 int crypto_engine_register_aead(struct aead_engine_alg *alg) in crypto_engine_register_aead() argument
574 if (!alg->op.do_one_request) in crypto_engine_register_aead()
577 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_aead()
579 return crypto_register_aead(&alg->base); in crypto_engine_register_aead()
583 void crypto_engine_unregister_aead(struct aead_engine_alg *alg) in crypto_engine_unregister_aead() argument
585 crypto_unregister_aead(&alg->base); in crypto_engine_unregister_aead()
617 int crypto_engine_register_ahash(struct ahash_engine_alg *alg) in crypto_engine_register_ahash() argument
619 if (!alg->op.do_one_request) in crypto_engine_register_ahash()
622 alg->base.halg.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_ahash()
624 return crypto_register_ahash(&alg->base); in crypto_engine_register_ahash()
628 void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg) in crypto_engine_unregister_ahash() argument
630 crypto_unregister_ahash(&alg->base); in crypto_engine_unregister_ahash()
663 int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_register_akcipher() argument
665 if (!alg->op.do_one_request) in crypto_engine_register_akcipher()
668 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_akcipher()
670 return crypto_register_akcipher(&alg->base); in crypto_engine_register_akcipher()
674 void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_unregister_akcipher() argument
676 crypto_unregister_akcipher(&alg->base); in crypto_engine_unregister_akcipher()
680 int crypto_engine_register_kpp(struct kpp_engine_alg *alg) in crypto_engine_register_kpp() argument
682 if (!alg->op.do_one_request) in crypto_engine_register_kpp()
685 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_kpp()
687 return crypto_register_kpp(&alg->base); in crypto_engine_register_kpp()
691 void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg) in crypto_engine_unregister_kpp() argument
693 crypto_unregister_kpp(&alg->base); in crypto_engine_unregister_kpp()
697 int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_register_skcipher() argument
699 if (!alg->op.do_one_request) in crypto_engine_register_skcipher()
702 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_skcipher()
704 return crypto_register_skcipher(&alg->base); in crypto_engine_register_skcipher()
708 void crypto_engine_unregister_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_unregister_skcipher() argument
710 return crypto_unregister_skcipher(&alg->base); in crypto_engine_unregister_skcipher()