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()
568 int crypto_engine_register_aead(struct aead_engine_alg *alg) in crypto_engine_register_aead() argument
570 if (!alg->op.do_one_request) in crypto_engine_register_aead()
573 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_aead()
575 return crypto_register_aead(&alg->base); in crypto_engine_register_aead()
579 void crypto_engine_unregister_aead(struct aead_engine_alg *alg) in crypto_engine_unregister_aead() argument
581 crypto_unregister_aead(&alg->base); in crypto_engine_unregister_aead()
613 int crypto_engine_register_ahash(struct ahash_engine_alg *alg) in crypto_engine_register_ahash() argument
615 if (!alg->op.do_one_request) in crypto_engine_register_ahash()
618 alg->base.halg.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_ahash()
620 return crypto_register_ahash(&alg->base); in crypto_engine_register_ahash()
624 void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg) in crypto_engine_unregister_ahash() argument
626 crypto_unregister_ahash(&alg->base); in crypto_engine_unregister_ahash()
659 int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_register_akcipher() argument
661 if (!alg->op.do_one_request) in crypto_engine_register_akcipher()
664 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_akcipher()
666 return crypto_register_akcipher(&alg->base); in crypto_engine_register_akcipher()
670 void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_unregister_akcipher() argument
672 crypto_unregister_akcipher(&alg->base); in crypto_engine_unregister_akcipher()
676 int crypto_engine_register_kpp(struct kpp_engine_alg *alg) in crypto_engine_register_kpp() argument
678 if (!alg->op.do_one_request) in crypto_engine_register_kpp()
681 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_kpp()
683 return crypto_register_kpp(&alg->base); in crypto_engine_register_kpp()
687 void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg) in crypto_engine_unregister_kpp() argument
689 crypto_unregister_kpp(&alg->base); in crypto_engine_unregister_kpp()
693 int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_register_skcipher() argument
695 if (!alg->op.do_one_request) in crypto_engine_register_skcipher()
698 alg->base.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_skcipher()
700 return crypto_register_skcipher(&alg->base); in crypto_engine_register_skcipher()
704 void crypto_engine_unregister_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_unregister_skcipher() argument
706 return crypto_unregister_skcipher(&alg->base); in crypto_engine_unregister_skcipher()