Lines Matching refs:aead

47 		struct aead_engine_alg aead;  member
79 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_cipher() local
80 struct zynqmp_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in zynqmp_aes_aead_cipher()
209 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_handle_aes_req() local
210 struct zynqmp_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in zynqmp_handle_aes_req()
241 static int zynqmp_aes_aead_setkey(struct crypto_aead *aead, const u8 *key, in zynqmp_aes_aead_setkey() argument
244 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setkey()
267 tfm_ctx->fbk_cipher->base.crt_flags |= (aead->base.crt_flags & in zynqmp_aes_aead_setkey()
273 static int zynqmp_aes_aead_setauthsize(struct crypto_aead *aead, in zynqmp_aes_aead_setauthsize() argument
276 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setauthsize()
287 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_encrypt() local
288 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_encrypt()
292 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_encrypt()
300 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_decrypt() local
301 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_decrypt()
305 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_decrypt()
310 static int zynqmp_aes_aead_init(struct crypto_aead *aead) in zynqmp_aes_aead_init() argument
312 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_init()
316 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_init()
318 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_init()
321 tfm_ctx->fbk_cipher = crypto_alloc_aead(drv_ctx->alg.aead.base.base.cra_name, in zynqmp_aes_aead_init()
327 __func__, drv_ctx->alg.aead.base.base.cra_name); in zynqmp_aes_aead_init()
331 crypto_aead_set_reqsize(aead, in zynqmp_aes_aead_init()
338 static void zynqmp_aes_aead_exit(struct crypto_aead *aead) in zynqmp_aes_aead_exit() argument
340 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_exit()
352 .alg.aead.base = {
375 .alg.aead.op = {
410 err = crypto_engine_register_aead(&aes_drv_ctx.alg.aead); in zynqmp_aes_aead_probe()
418 crypto_engine_unregister_aead(&aes_drv_ctx.alg.aead); in zynqmp_aes_aead_probe()
430 crypto_engine_unregister_aead(&aes_drv_ctx.alg.aead); in zynqmp_aes_aead_remove()