Lines Matching refs:aead

101 	struct aead_engine_alg aead;  member
140 static int aead_null_set_sh_desc(struct crypto_aead *aead) in aead_null_set_sh_desc() argument
142 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_null_set_sh_desc()
190 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc() argument
192 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc()
194 aead.base); in aead_set_sh_desc()
195 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc()
196 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_set_sh_desc()
212 return aead_null_set_sh_desc(aead); in aead_set_sh_desc()
332 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc() argument
334 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
336 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc()
397 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc() argument
399 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
401 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc()
465 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc() argument
467 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
469 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc()
531 static int chachapoly_set_sh_desc(struct crypto_aead *aead) in chachapoly_set_sh_desc() argument
533 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_set_sh_desc()
535 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_set_sh_desc()
556 static int chachapoly_setauthsize(struct crypto_aead *aead, in chachapoly_setauthsize() argument
559 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setauthsize()
565 return chachapoly_set_sh_desc(aead); in chachapoly_setauthsize()
568 static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, in chachapoly_setkey() argument
571 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setkey()
572 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_setkey()
582 return chachapoly_set_sh_desc(aead); in chachapoly_setkey()
585 static int aead_setkey(struct crypto_aead *aead, in aead_setkey() argument
588 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
643 return aead_set_sh_desc(aead); in aead_setkey()
649 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey() argument
659 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
660 aead_setkey(aead, key, keylen); in des3_aead_setkey()
666 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey() argument
669 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
684 return gcm_set_sh_desc(aead); in gcm_setkey()
687 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey() argument
690 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
710 return rfc4106_set_sh_desc(aead); in rfc4106_setkey()
713 static int rfc4543_setkey(struct crypto_aead *aead, in rfc4543_setkey() argument
716 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
736 return rfc4543_set_sh_desc(aead); in rfc4543_setkey()
1075 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_aead_job() local
1076 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_aead_job()
1136 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_gcm_job() local
1137 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_gcm_job()
1138 unsigned int ivsize = crypto_aead_ivsize(aead); in init_gcm_job()
1166 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_chachapoly_job() local
1167 unsigned int ivsize = crypto_aead_ivsize(aead); in init_chachapoly_job()
1200 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_authenc_job() local
1201 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in init_authenc_job()
1203 aead.base); in init_authenc_job()
1204 unsigned int ivsize = crypto_aead_ivsize(aead); in init_authenc_job()
1205 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_authenc_job()
1309 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_edesc_alloc() local
1310 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
1475 struct crypto_aead *aead = crypto_aead_reqtfm(req); in chachapoly_crypt() local
1476 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_crypt()
1509 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_crypt() local
1510 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_crypt()
1568 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() local
1569 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_crypt()
2070 .aead.base = {
2083 .aead.op = {
2092 .aead.base = {
2105 .aead.op = {
2115 .aead.base = {
2128 .aead.op = {
2138 .aead.base = {
2153 .aead.op = {
2162 .aead.base = {
2177 .aead.op = {
2186 .aead.base = {
2201 .aead.op = {
2210 .aead.base = {
2225 .aead.op = {
2234 .aead.base = {
2249 .aead.op = {
2258 .aead.base = {
2273 .aead.op = {
2282 .aead.base = {
2296 .aead.op = {
2306 .aead.base = {
2321 .aead.op = {
2332 .aead.base = {
2346 .aead.op = {
2356 .aead.base = {
2371 .aead.op = {
2382 .aead.base = {
2396 .aead.op = {
2406 .aead.base = {
2421 .aead.op = {
2432 .aead.base = {
2446 .aead.op = {
2456 .aead.base = {
2471 .aead.op = {
2482 .aead.base = {
2496 .aead.op = {
2506 .aead.base = {
2521 .aead.op = {
2532 .aead.base = {
2546 .aead.op = {
2556 .aead.base = {
2571 .aead.op = {
2582 .aead.base = {
2596 .aead.op = {
2606 .aead.base = {
2621 .aead.op = {
2632 .aead.base = {
2647 .aead.op = {
2657 .aead.base = {
2673 .aead.op = {
2684 .aead.base = {
2699 .aead.op = {
2709 .aead.base = {
2725 .aead.op = {
2736 .aead.base = {
2751 .aead.op = {
2761 .aead.base = {
2777 .aead.op = {
2788 .aead.base = {
2803 .aead.op = {
2813 .aead.base = {
2829 .aead.op = {
2840 .aead.base = {
2855 .aead.op = {
2865 .aead.base = {
2881 .aead.op = {
2892 .aead.base = {
2906 .aead.op = {
2916 .aead.base = {
2931 .aead.op = {
2942 .aead.base = {
2956 .aead.op = {
2966 .aead.base = {
2981 .aead.op = {
2992 .aead.base = {
3006 .aead.op = {
3016 .aead.base = {
3031 .aead.op = {
3042 .aead.base = {
3056 .aead.op = {
3066 .aead.base = {
3081 .aead.op = {
3092 .aead.base = {
3106 .aead.op = {
3116 .aead.base = {
3131 .aead.op = {
3142 .aead.base = {
3156 .aead.op = {
3166 .aead.base = {
3181 .aead.op = {
3192 .aead.base = {
3207 .aead.op = {
3219 .aead.base = {
3234 .aead.op = {
3247 .aead.base = {
3262 .aead.op = {
3274 .aead.base = {
3289 .aead.op = {
3302 .aead.base = {
3317 .aead.op = {
3329 .aead.base = {
3344 .aead.op = {
3357 .aead.base = {
3372 .aead.op = {
3384 .aead.base = {
3399 .aead.op = {
3412 .aead.base = {
3427 .aead.op = {
3439 .aead.base = {
3454 .aead.op = {
3467 .aead.base = {
3482 .aead.op = {
3494 .aead.base = {
3509 .aead.op = {
3522 .aead.base = {
3536 .aead.op = {
3548 .aead.base = {
3562 .aead.op = {
3659 container_of(alg, struct caam_aead_alg, aead.base); in caam_aead_init()
3698 crypto_engine_unregister_aead(&t_alg->aead); in caam_algapi_exit()
3725 struct aead_alg *alg = &t_alg->aead.base; in caam_aead_alg_init()
3862 (!md_inst || t_alg->aead.base.maxauthsize > md_limit)) in caam_algapi_init()
3867 err = crypto_engine_register_aead(&t_alg->aead); in caam_algapi_init()
3870 t_alg->aead.base.base.cra_driver_name); in caam_algapi_init()