Lines Matching defs:engine
19 #include <crypto/engine.h>
136 struct crypto_engine *engine;
630 crypto_finalize_aead_request(cryp->engine, cryp->areq, err);
632 crypto_finalize_skcipher_request(cryp->engine, cryp->req,
644 static int stm32_cryp_cipher_one_req(struct crypto_engine *engine, void *areq);
645 static int stm32_cryp_prepare_cipher_req(struct crypto_engine *engine,
660 static int stm32_cryp_aead_one_req(struct crypto_engine *engine, void *areq);
661 static int stm32_cryp_prepare_aead_req(struct crypto_engine *engine,
689 return crypto_transfer_skcipher_request_to_engine(cryp->engine, req);
703 return crypto_transfer_aead_request_to_engine(cryp->engine, req);
1068 static int stm32_cryp_prepare_cipher_req(struct crypto_engine *engine,
1078 static int stm32_cryp_cipher_one_req(struct crypto_engine *engine, void *areq)
1093 static int stm32_cryp_prepare_aead_req(struct crypto_engine *engine, void *areq)
1101 static int stm32_cryp_aead_one_req(struct crypto_engine *engine, void *areq)
1794 /* Initialize crypto engine */
1795 cryp->engine = crypto_engine_alloc_init(dev, 1);
1796 if (!cryp->engine) {
1797 dev_err(dev, "Could not init crypto engine\n");
1802 ret = crypto_engine_start(cryp->engine);
1804 dev_err(dev, "Could not start crypto engine\n");
1828 crypto_engine_exit(cryp->engine);
1857 crypto_engine_exit(cryp->engine);