Lines Matching refs:aead
92 struct aead_alg aead; member
132 static int aead_null_set_sh_desc(struct crypto_aead *aead) in aead_null_set_sh_desc() argument
134 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_null_set_sh_desc()
182 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc() argument
184 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc()
185 struct caam_aead_alg, aead); in aead_set_sh_desc()
186 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc()
187 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_set_sh_desc()
203 return aead_null_set_sh_desc(aead); in aead_set_sh_desc()
323 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc() argument
325 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_set_sh_desc()
327 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc()
388 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc() argument
390 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_set_sh_desc()
392 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc()
456 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc() argument
458 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_set_sh_desc()
460 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc()
522 static int chachapoly_set_sh_desc(struct crypto_aead *aead) in chachapoly_set_sh_desc() argument
524 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_set_sh_desc()
526 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_set_sh_desc()
547 static int chachapoly_setauthsize(struct crypto_aead *aead, in chachapoly_setauthsize() argument
550 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setauthsize()
556 return chachapoly_set_sh_desc(aead); in chachapoly_setauthsize()
559 static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, in chachapoly_setkey() argument
562 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setkey()
563 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_setkey()
572 return chachapoly_set_sh_desc(aead); in chachapoly_setkey()
575 static int aead_setkey(struct crypto_aead *aead, in aead_setkey() argument
578 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_setkey()
633 return aead_set_sh_desc(aead); in aead_setkey()
639 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey() argument
649 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
650 aead_setkey(aead, key, keylen); in des3_aead_setkey()
656 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey() argument
659 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_setkey()
674 return gcm_set_sh_desc(aead); in gcm_setkey()
677 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey() argument
680 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_setkey()
700 return rfc4106_set_sh_desc(aead); in rfc4106_setkey()
703 static int rfc4543_setkey(struct crypto_aead *aead, in rfc4543_setkey() argument
706 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_setkey()
726 return rfc4543_set_sh_desc(aead); in rfc4543_setkey()
1059 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_aead_job() local
1060 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_aead_job()
1120 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_gcm_job() local
1121 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_gcm_job()
1122 unsigned int ivsize = crypto_aead_ivsize(aead); in init_gcm_job()
1150 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_chachapoly_job() local
1151 unsigned int ivsize = crypto_aead_ivsize(aead); in init_chachapoly_job()
1184 struct crypto_aead *aead = crypto_aead_reqtfm(req); in init_authenc_job() local
1185 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in init_authenc_job()
1186 struct caam_aead_alg, aead); in init_authenc_job()
1187 unsigned int ivsize = crypto_aead_ivsize(aead); in init_authenc_job()
1188 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_authenc_job()
1292 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_edesc_alloc() local
1293 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_edesc_alloc()
1459 struct crypto_aead *aead = crypto_aead_reqtfm(req); in chachapoly_crypt() local
1460 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_crypt()
1493 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_crypt() local
1494 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_crypt()
1552 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() local
1553 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_crypt()
2022 .aead = {
2041 .aead = {
2061 .aead = {
2081 .aead = {
2102 .aead = {
2123 .aead = {
2144 .aead = {
2165 .aead = {
2186 .aead = {
2207 .aead = {
2228 .aead = {
2251 .aead = {
2272 .aead = {
2295 .aead = {
2316 .aead = {
2339 .aead = {
2360 .aead = {
2383 .aead = {
2404 .aead = {
2427 .aead = {
2448 .aead = {
2471 .aead = {
2492 .aead = {
2515 .aead = {
2537 .aead = {
2561 .aead = {
2583 .aead = {
2607 .aead = {
2629 .aead = {
2653 .aead = {
2675 .aead = {
2699 .aead = {
2721 .aead = {
2745 .aead = {
2766 .aead = {
2789 .aead = {
2810 .aead = {
2833 .aead = {
2854 .aead = {
2877 .aead = {
2898 .aead = {
2921 .aead = {
2942 .aead = {
2965 .aead = {
2986 .aead = {
3009 .aead = {
3033 .aead = {
3058 .aead = {
3082 .aead = {
3107 .aead = {
3131 .aead = {
3156 .aead = {
3180 .aead = {
3205 .aead = {
3229 .aead = {
3254 .aead = {
3278 .aead = {
3303 .aead = {
3326 .aead = {
3436 container_of(alg, struct caam_aead_alg, aead); in caam_aead_init()
3477 crypto_unregister_aead(&t_alg->aead); in caam_algapi_exit()
3504 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
3640 (!md_inst || t_alg->aead.maxauthsize > md_limit)) in caam_algapi_init()
3645 err = crypto_register_aead(&t_alg->aead); in caam_algapi_init()
3648 t_alg->aead.base.cra_driver_name); in caam_algapi_init()