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()
1549 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() local
1550 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_crypt()
2016 .aead = {
2035 .aead = {
2055 .aead = {
2075 .aead = {
2096 .aead = {
2117 .aead = {
2138 .aead = {
2159 .aead = {
2180 .aead = {
2201 .aead = {
2222 .aead = {
2245 .aead = {
2266 .aead = {
2289 .aead = {
2310 .aead = {
2333 .aead = {
2354 .aead = {
2377 .aead = {
2398 .aead = {
2421 .aead = {
2442 .aead = {
2465 .aead = {
2486 .aead = {
2509 .aead = {
2531 .aead = {
2555 .aead = {
2577 .aead = {
2601 .aead = {
2623 .aead = {
2647 .aead = {
2669 .aead = {
2693 .aead = {
2715 .aead = {
2739 .aead = {
2760 .aead = {
2783 .aead = {
2804 .aead = {
2827 .aead = {
2848 .aead = {
2871 .aead = {
2892 .aead = {
2915 .aead = {
2936 .aead = {
2959 .aead = {
2980 .aead = {
3003 .aead = {
3027 .aead = {
3052 .aead = {
3076 .aead = {
3101 .aead = {
3125 .aead = {
3150 .aead = {
3174 .aead = {
3199 .aead = {
3223 .aead = {
3248 .aead = {
3272 .aead = {
3297 .aead = {
3320 .aead = {
3430 container_of(alg, struct caam_aead_alg, aead); in caam_aead_init()
3471 crypto_unregister_aead(&t_alg->aead); in caam_algapi_exit()
3498 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
3634 (!md_inst || t_alg->aead.maxauthsize > md_limit)) in caam_algapi_init()
3639 err = crypto_register_aead(&t_alg->aead); in caam_algapi_init()
3642 t_alg->aead.base.cra_driver_name); in caam_algapi_init()