aead               69 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead               97 arch/arm64/crypto/aes-ce-ccm-glue.c 	maciv[0] |= (crypto_aead_authsize(aead) - 2) << 2;
aead              142 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              143 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              230 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              231 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              280 arch/arm64/crypto/aes-ce-ccm-glue.c 				 crypto_aead_authsize(aead), 1);
aead              287 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              288 arch/arm64/crypto/aes-ce-ccm-glue.c 	struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              289 arch/arm64/crypto/aes-ce-ccm-glue.c 	unsigned int authsize = crypto_aead_authsize(aead);
aead              367 arch/arm64/crypto/ghash-ce-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              368 arch/arm64/crypto/ghash-ce-glue.c 	struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              421 arch/arm64/crypto/ghash-ce-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              422 arch/arm64/crypto/ghash-ce-glue.c 	struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              533 arch/arm64/crypto/ghash-ce-glue.c 				 crypto_aead_authsize(aead), 1);
aead              540 arch/arm64/crypto/ghash-ce-glue.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              541 arch/arm64/crypto/ghash-ce-glue.c 	struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead);
aead              542 arch/arm64/crypto/ghash-ce-glue.c 	unsigned int authsize = crypto_aead_authsize(aead);
aead              135 arch/x86/crypto/aegis128-aesni-glue.c static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead)
aead              137 arch/x86/crypto/aegis128-aesni-glue.c 	u8 *ctx = crypto_aead_ctx(aead);
aead              142 arch/x86/crypto/aegis128-aesni-glue.c static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key,
aead              145 arch/x86/crypto/aegis128-aesni-glue.c 	struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(aead);
aead              148 arch/x86/crypto/aegis128-aesni-glue.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              232 arch/x86/crypto/aegis128-aesni-glue.c static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead)
aead              237 arch/x86/crypto/aegis128-aesni-glue.c static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead)
aead              648 arch/x86/crypto/aesni-intel_glue.c static int common_rfc4106_set_key(struct crypto_aead *aead, const u8 *key,
aead              651 arch/x86/crypto/aesni-intel_glue.c 	struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(aead);
aead              654 arch/x86/crypto/aesni-intel_glue.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              662 arch/x86/crypto/aesni-intel_glue.c 	return aes_set_key_common(crypto_aead_tfm(aead),
aead              669 arch/x86/crypto/aesni-intel_glue.c static int common_rfc4106_set_authsize(struct crypto_aead *aead,
aead              998 arch/x86/crypto/aesni-intel_glue.c static int generic_gcmaes_set_key(struct crypto_aead *aead, const u8 *key,
aead             1001 arch/x86/crypto/aesni-intel_glue.c 	struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(aead);
aead             1003 arch/x86/crypto/aesni-intel_glue.c 	return aes_set_key_common(crypto_aead_tfm(aead),
aead               90 crypto/aead.c  	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead               91 crypto/aead.c  	struct crypto_alg *alg = aead->base.__crt_alg;
aead               96 crypto/aead.c  	if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY)
aead               99 crypto/aead.c  		ret = crypto_aead_alg(aead)->encrypt(req);
aead              107 crypto/aead.c  	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              108 crypto/aead.c  	struct crypto_alg *alg = aead->base.__crt_alg;
aead              113 crypto/aead.c  	if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY)
aead              115 crypto/aead.c  	else if (req->cryptlen < crypto_aead_authsize(aead))
aead              118 crypto/aead.c  		ret = crypto_aead_alg(aead)->decrypt(req);
aead              126 crypto/aead.c  	struct crypto_aead *aead = __crypto_aead_cast(tfm);
aead              127 crypto/aead.c  	struct aead_alg *alg = crypto_aead_alg(aead);
aead              129 crypto/aead.c  	alg->exit(aead);
aead              134 crypto/aead.c  	struct crypto_aead *aead = __crypto_aead_cast(tfm);
aead              135 crypto/aead.c  	struct aead_alg *alg = crypto_aead_alg(aead);
aead              137 crypto/aead.c  	crypto_aead_set_flags(aead, CRYPTO_TFM_NEED_KEY);
aead              139 crypto/aead.c  	aead->authsize = alg->maxauthsize;
aead              142 crypto/aead.c  		aead->base.exit = crypto_aead_exit_tfm;
aead              145 crypto/aead.c  		return alg->init(aead);
aead              154 crypto/aead.c  	struct aead_alg *aead = container_of(alg, struct aead_alg, base);
aead              162 crypto/aead.c  	raead.maxauthsize = aead->maxauthsize;
aead              163 crypto/aead.c  	raead.ivsize = aead->ivsize;
aead              178 crypto/aead.c  	struct aead_alg *aead = container_of(alg, struct aead_alg, base);
aead              184 crypto/aead.c  	seq_printf(m, "ivsize       : %u\n", aead->ivsize);
aead              185 crypto/aead.c  	seq_printf(m, "maxauthsize  : %u\n", aead->maxauthsize);
aead              191 crypto/aead.c  	struct aead_instance *aead = aead_instance(inst);
aead              193 crypto/aead.c  	if (!aead->free) {
aead              198 crypto/aead.c  	aead->free(aead);
aead              318 crypto/aead.c  int aead_init_geniv(struct crypto_aead *aead)
aead              320 crypto/aead.c  	struct aead_geniv_ctx *ctx = crypto_aead_ctx(aead);
aead              321 crypto/aead.c  	struct aead_instance *inst = aead_alg_instance(aead);
aead              332 crypto/aead.c  				   crypto_aead_ivsize(aead));
aead              348 crypto/aead.c  	crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) +
aead              369 crypto/aegis128-core.c static int crypto_aegis128_setkey(struct crypto_aead *aead, const u8 *key,
aead              372 crypto/aegis128-core.c 	struct aegis_ctx *ctx = crypto_aead_ctx(aead);
aead              375 crypto/aegis128-core.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead             1095 crypto/algapi.c 		atomic64_inc(&alg->stats.aead.err_cnt);
aead             1097 crypto/algapi.c 		atomic64_inc(&alg->stats.aead.encrypt_cnt);
aead             1098 crypto/algapi.c 		atomic64_add(cryptlen, &alg->stats.aead.encrypt_tlen);
aead             1108 crypto/algapi.c 		atomic64_inc(&alg->stats.aead.err_cnt);
aead             1110 crypto/algapi.c 		atomic64_inc(&alg->stats.aead.decrypt_cnt);
aead             1111 crypto/algapi.c 		atomic64_add(cryptlen, &alg->stats.aead.decrypt_tlen);
aead               40 crypto/algif_aead.c 	struct crypto_aead *aead;
aead               51 crypto/algif_aead.c 	struct crypto_aead *tfm = aeadc->aead;
aead               68 crypto/algif_aead.c 	struct crypto_aead *tfm = aeadc->aead;
aead               97 crypto/algif_aead.c 	struct crypto_aead *tfm = aeadc->aead;
aead              396 crypto/algif_aead.c 	if (crypto_aead_get_flags(tfm->aead) & CRYPTO_TFM_NEED_KEY)
aead              476 crypto/algif_aead.c 	struct crypto_aead *aead;
aead              483 crypto/algif_aead.c 	aead = crypto_alloc_aead(name, type, mask);
aead              484 crypto/algif_aead.c 	if (IS_ERR(aead)) {
aead              486 crypto/algif_aead.c 		return ERR_CAST(aead);
aead              491 crypto/algif_aead.c 		crypto_free_aead(aead);
aead              496 crypto/algif_aead.c 	tfm->aead = aead;
aead              506 crypto/algif_aead.c 	crypto_free_aead(tfm->aead);
aead              515 crypto/algif_aead.c 	return crypto_aead_setauthsize(tfm->aead, authsize);
aead              522 crypto/algif_aead.c 	return crypto_aead_setkey(tfm->aead, key, keylen);
aead              532 crypto/algif_aead.c 	struct crypto_aead *tfm = aeadc->aead;
aead              546 crypto/algif_aead.c 	struct crypto_aead *aead = tfm->aead;
aead              548 crypto/algif_aead.c 	unsigned int ivlen = crypto_aead_ivsize(aead);
aead              583 crypto/algif_aead.c 	if (crypto_aead_get_flags(tfm->aead) & CRYPTO_TFM_NEED_KEY)
aead               88 crypto/ccm.c   static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key,
aead               91 crypto/ccm.c   	struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead);
aead               97 crypto/ccm.c   	crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) &
aead              100 crypto/ccm.c   	crypto_aead_set_flags(aead, crypto_skcipher_get_flags(ctr) &
aead              106 crypto/ccm.c   	crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) &
aead              109 crypto/ccm.c   	crypto_aead_set_flags(aead, crypto_ahash_get_flags(mac) &
aead              138 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              143 crypto/ccm.c   	m = crypto_aead_authsize(aead);
aead              180 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              181 crypto/ccm.c   	struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead);
aead              238 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              245 crypto/ccm.c   					 crypto_aead_authsize(aead), 1);
aead              295 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              296 crypto/ccm.c   	struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead);
aead              327 crypto/ccm.c   				 crypto_aead_authsize(aead), 1);
aead              336 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              337 crypto/ccm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead              355 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              356 crypto/ccm.c   	struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead);
aead              360 crypto/ccm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead              646 crypto/ccm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              647 crypto/ccm.c   	struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead);
aead              711 crypto/ccm.c   	struct crypto_aead *aead;
aead              714 crypto/ccm.c   	aead = crypto_spawn_aead(spawn);
aead              715 crypto/ccm.c   	if (IS_ERR(aead))
aead              716 crypto/ccm.c   		return PTR_ERR(aead);
aead              718 crypto/ccm.c   	ctx->child = aead;
aead              720 crypto/ccm.c   	align = crypto_aead_alignmask(aead);
aead              725 crypto/ccm.c   		ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) +
aead              476 crypto/chacha20poly1305.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key,
aead              479 crypto/chacha20poly1305.c 	struct chachapoly_ctx *ctx = crypto_aead_ctx(aead);
aead              489 crypto/chacha20poly1305.c 	crypto_skcipher_set_flags(ctx->chacha, crypto_aead_get_flags(aead) &
aead              493 crypto/chacha20poly1305.c 	crypto_aead_set_flags(aead, crypto_skcipher_get_flags(ctx->chacha) &
aead               39 crypto/crypto_user_stat.c 	raead.stat_encrypt_cnt = atomic64_read(&alg->stats.aead.encrypt_cnt);
aead               40 crypto/crypto_user_stat.c 	raead.stat_encrypt_tlen = atomic64_read(&alg->stats.aead.encrypt_tlen);
aead               41 crypto/crypto_user_stat.c 	raead.stat_decrypt_cnt = atomic64_read(&alg->stats.aead.decrypt_cnt);
aead               42 crypto/crypto_user_stat.c 	raead.stat_decrypt_tlen = atomic64_read(&alg->stats.aead.decrypt_tlen);
aead               43 crypto/crypto_user_stat.c 	raead.stat_err_cnt = atomic64_read(&alg->stats.aead.err_cnt);
aead               52 crypto/essiv.c 		struct crypto_aead	*aead;
aead              111 crypto/essiv.c 	crypto_aead_clear_flags(tctx->u.aead, CRYPTO_TFM_REQ_MASK);
aead              112 crypto/essiv.c 	crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) &
aead              114 crypto/essiv.c 	err = crypto_aead_setkey(tctx->u.aead, key, keylen);
aead              115 crypto/essiv.c 	crypto_aead_set_flags(tfm, crypto_aead_get_flags(tctx->u.aead) &
aead              148 crypto/essiv.c 	return crypto_aead_setauthsize(tctx->u.aead, authsize);
aead              259 crypto/essiv.c 	aead_request_set_tfm(subreq, tctx->u.aead);
aead              340 crypto/essiv.c 	struct crypto_aead *aead;
aead              347 crypto/essiv.c 	aead = crypto_spawn_aead(&ictx->u.aead_spawn);
aead              348 crypto/essiv.c 	if (IS_ERR(aead))
aead              349 crypto/essiv.c 		return PTR_ERR(aead);
aead              352 crypto/essiv.c 		      crypto_aead_reqsize(aead);
aead              356 crypto/essiv.c 	crypto_aead_set_reqsize(tfm, tctx->ivoffset + crypto_aead_ivsize(aead));
aead              360 crypto/essiv.c 		crypto_free_aead(aead);
aead              364 crypto/essiv.c 	tctx->u.aead = aead;
aead              381 crypto/essiv.c 	crypto_free_aead(tctx->u.aead);
aead               45 crypto/gcm.c   	struct crypto_aead_spawn aead;
aead               93 crypto/gcm.c   static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key,
aead               96 crypto/gcm.c   	struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead);
aead              111 crypto/gcm.c   	crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) &
aead              114 crypto/gcm.c   	crypto_aead_set_flags(aead, crypto_skcipher_get_flags(ctr) &
aead              141 crypto/gcm.c   	crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) &
aead              144 crypto/gcm.c   	crypto_aead_set_flags(aead, crypto_ahash_get_flags(ghash) &
aead              186 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              187 crypto/gcm.c   	struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead);
aead              420 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              426 crypto/gcm.c   				 crypto_aead_authsize(aead), 1);
aead              474 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              477 crypto/gcm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead              509 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              512 crypto/gcm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead              764 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              765 crypto/gcm.c   	struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(aead);
aead              833 crypto/gcm.c   	struct crypto_aead *aead;
aead              836 crypto/gcm.c   	aead = crypto_spawn_aead(spawn);
aead              837 crypto/gcm.c   	if (IS_ERR(aead))
aead              838 crypto/gcm.c   		return PTR_ERR(aead);
aead              840 crypto/gcm.c   	ctx->child = aead;
aead              842 crypto/gcm.c   	align = crypto_aead_alignmask(aead);
aead              847 crypto/gcm.c   		ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) +
aead              990 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              991 crypto/gcm.c   	struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead);
aead              994 crypto/gcm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead             1021 crypto/gcm.c   	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1022 crypto/gcm.c   	struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead);
aead             1023 crypto/gcm.c   	unsigned int authsize = crypto_aead_authsize(aead);
aead             1051 crypto/gcm.c   	struct crypto_aead_spawn *spawn = &ictx->aead;
aead             1053 crypto/gcm.c   	struct crypto_aead *aead;
aead             1058 crypto/gcm.c   	aead = crypto_spawn_aead(spawn);
aead             1059 crypto/gcm.c   	if (IS_ERR(aead))
aead             1060 crypto/gcm.c   		return PTR_ERR(aead);
aead             1067 crypto/gcm.c   	ctx->child = aead;
aead             1070 crypto/gcm.c   	align = crypto_aead_alignmask(aead);
aead             1075 crypto/gcm.c   		ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) +
aead             1081 crypto/gcm.c   	crypto_free_aead(aead);
aead             1097 crypto/gcm.c   	crypto_drop_aead(&ctx->aead);
aead             1129 crypto/gcm.c   	spawn = &ctx->aead;
aead               97 crypto/pcrypt.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead               98 crypto/pcrypt.c 	struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead);
aead              102 crypto/pcrypt.c 	ictx = pcrypt_tfm_ictx(aead);
aead              142 crypto/pcrypt.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              143 crypto/pcrypt.c 	struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead);
aead              147 crypto/pcrypt.c 	ictx = pcrypt_tfm_ictx(aead);
aead              132 crypto/testmgr.c 		struct aead_test_suite aead;
aead             2225 crypto/testmgr.c 	for (i = 0; i < test_desc->suite.aead.count; i++)
aead             2227 crypto/testmgr.c 				   test_desc->suite.aead.vecs[i].klen);
aead             2300 crypto/testmgr.c 	const struct aead_test_suite *suite = &desc->suite.aead;
aead             3899 crypto/testmgr.c 			.aead = __VECS(aegis128_tv_template)
aead             3911 crypto/testmgr.c 			.aead = __VECS(hmac_md5_ecb_cipher_null_tv_template)
aead             3918 crypto/testmgr.c 			.aead = __VECS(hmac_sha1_aes_cbc_tv_temp)
aead             3924 crypto/testmgr.c 			.aead = __VECS(hmac_sha1_des_cbc_tv_temp)
aead             3931 crypto/testmgr.c 			.aead = __VECS(hmac_sha1_des3_ede_cbc_tv_temp)
aead             3941 crypto/testmgr.c 			.aead = __VECS(hmac_sha1_ecb_cipher_null_tv_temp)
aead             3951 crypto/testmgr.c 			.aead = __VECS(hmac_sha224_des_cbc_tv_temp)
aead             3958 crypto/testmgr.c 			.aead = __VECS(hmac_sha224_des3_ede_cbc_tv_temp)
aead             3965 crypto/testmgr.c 			.aead = __VECS(hmac_sha256_aes_cbc_tv_temp)
aead             3971 crypto/testmgr.c 			.aead = __VECS(hmac_sha256_des_cbc_tv_temp)
aead             3978 crypto/testmgr.c 			.aead = __VECS(hmac_sha256_des3_ede_cbc_tv_temp)
aead             3992 crypto/testmgr.c 			.aead = __VECS(hmac_sha384_des_cbc_tv_temp)
aead             3999 crypto/testmgr.c 			.aead = __VECS(hmac_sha384_des3_ede_cbc_tv_temp)
aead             4014 crypto/testmgr.c 			.aead = __VECS(hmac_sha512_aes_cbc_tv_temp)
aead             4020 crypto/testmgr.c 			.aead = __VECS(hmac_sha512_des_cbc_tv_temp)
aead             4027 crypto/testmgr.c 			.aead = __VECS(hmac_sha512_des3_ede_cbc_tv_temp)
aead             4131 crypto/testmgr.c 			.aead = __VECS(aes_ccm_tv_template)
aead             4564 crypto/testmgr.c 			.aead = __VECS(essiv_hmac_sha256_aes_cbc_tv_temp)
aead             4579 crypto/testmgr.c 			.aead = __VECS(aes_gcm_tv_template)
aead             4849 crypto/testmgr.c 			.aead = __VECS(aes_gcm_rfc4106_tv_template)
aead             4857 crypto/testmgr.c 			.aead = __VECS(aes_ccm_rfc4309_tv_template)
aead             4864 crypto/testmgr.c 			.aead = __VECS(aes_gcm_rfc4543_tv_template)
aead             4870 crypto/testmgr.c 			.aead = __VECS(rfc7539_tv_template)
aead             4876 crypto/testmgr.c 			.aead = __VECS(rfc7539esp_tv_template)
aead              338 drivers/crypto/amcc/crypto4xx_alg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              341 drivers/crypto/amcc/crypto4xx_alg.c 	if (aead->authsize & 3)
aead              367 drivers/crypto/amcc/crypto4xx_alg.c 	aead_request_set_tfm(subreq, ctx->sw_cipher.aead);
aead              384 drivers/crypto/amcc/crypto4xx_alg.c 	crypto_aead_clear_flags(ctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK);
aead              385 drivers/crypto/amcc/crypto4xx_alg.c 	crypto_aead_set_flags(ctx->sw_cipher.aead,
aead              387 drivers/crypto/amcc/crypto4xx_alg.c 	rc = crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen);
aead              390 drivers/crypto/amcc/crypto4xx_alg.c 		crypto_aead_get_flags(ctx->sw_cipher.aead) &
aead              464 drivers/crypto/amcc/crypto4xx_alg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              471 drivers/crypto/amcc/crypto4xx_alg.c 		len -= crypto_aead_authsize(aead);
aead              477 drivers/crypto/amcc/crypto4xx_alg.c 	sa->sa_command_0.bf.digest_len = crypto_aead_authsize(aead) >> 2;
aead              508 drivers/crypto/amcc/crypto4xx_alg.c 	return crypto_aead_setauthsize(ctx->sw_cipher.aead, authsize);
aead              983 drivers/crypto/amcc/crypto4xx_core.c 	ctx->sw_cipher.aead = crypto_alloc_aead(alg->base.cra_name, 0,
aead              986 drivers/crypto/amcc/crypto4xx_core.c 	if (IS_ERR(ctx->sw_cipher.aead))
aead              987 drivers/crypto/amcc/crypto4xx_core.c 		return PTR_ERR(ctx->sw_cipher.aead);
aead              989 drivers/crypto/amcc/crypto4xx_core.c 	amcc_alg = container_of(alg, struct crypto4xx_alg, alg.u.aead);
aead              992 drivers/crypto/amcc/crypto4xx_core.c 				crypto_aead_reqsize(ctx->sw_cipher.aead),
aead             1002 drivers/crypto/amcc/crypto4xx_core.c 	crypto_free_aead(ctx->sw_cipher.aead);
aead             1023 drivers/crypto/amcc/crypto4xx_core.c 			rc = crypto_register_aead(&alg->alg.u.aead);
aead             1060 drivers/crypto/amcc/crypto4xx_core.c 			crypto_unregister_aead(&alg->alg.u.aead);
aead             1315 drivers/crypto/amcc/crypto4xx_core.c 	{ .type = CRYPTO_ALG_TYPE_AEAD, .u.aead = {
aead             1336 drivers/crypto/amcc/crypto4xx_core.c 	{ .type = CRYPTO_ALG_TYPE_AEAD, .u.aead = {
aead              125 drivers/crypto/amcc/crypto4xx_core.h 		struct crypto_aead *aead;
aead              138 drivers/crypto/amcc/crypto4xx_core.h 		struct aead_alg aead;
aead             2191 drivers/crypto/axis/artpec6_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead             2196 drivers/crypto/axis/artpec6_crypto.c 		unsigned int authsize = crypto_aead_authsize(aead);
aead             2571 drivers/crypto/bcm/cipher.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             2572 drivers/crypto/bcm/cipher.c 	struct iproc_ctx_s *ctx = crypto_aead_ctx(aead);
aead             2641 drivers/crypto/bcm/cipher.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             2645 drivers/crypto/bcm/cipher.c 	areq->tfm = crypto_aead_tfm(aead);
aead             2655 drivers/crypto/bcm/cipher.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             2656 drivers/crypto/bcm/cipher.c 	struct crypto_tfm *tfm = crypto_aead_tfm(aead);
aead             2687 drivers/crypto/bcm/cipher.c 			aead_request_set_tfm(req, aead);
aead             2701 drivers/crypto/bcm/cipher.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             2702 drivers/crypto/bcm/cipher.c 	struct iproc_ctx_s *ctx = crypto_aead_ctx(aead);
aead             3129 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3152 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3175 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3198 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3221 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3244 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3267 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3290 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3313 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3336 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3359 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3382 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3405 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3428 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3451 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3474 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3497 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3520 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3543 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             3566 drivers/crypto/bcm/cipher.c 	 .alg.aead = {
aead             4320 drivers/crypto/bcm/cipher.c static int aead_cra_init(struct crypto_aead *aead)
aead             4322 drivers/crypto/bcm/cipher.c 	struct crypto_tfm *tfm = crypto_aead_tfm(aead);
aead             4327 drivers/crypto/bcm/cipher.c 						      alg.aead);
aead             4333 drivers/crypto/bcm/cipher.c 	crypto_aead_set_reqsize(aead, sizeof(struct iproc_reqctx_s));
aead             4366 drivers/crypto/bcm/cipher.c static void aead_cra_exit(struct crypto_aead *aead)
aead             4368 drivers/crypto/bcm/cipher.c 	struct crypto_tfm *tfm = crypto_aead_tfm(aead);
aead             4620 drivers/crypto/bcm/cipher.c 	struct aead_alg *aead = &driver_alg->alg.aead;
aead             4623 drivers/crypto/bcm/cipher.c 	aead->base.cra_module = THIS_MODULE;
aead             4624 drivers/crypto/bcm/cipher.c 	aead->base.cra_priority = aead_pri;
aead             4625 drivers/crypto/bcm/cipher.c 	aead->base.cra_alignmask = 0;
aead             4626 drivers/crypto/bcm/cipher.c 	aead->base.cra_ctxsize = sizeof(struct iproc_ctx_s);
aead             4628 drivers/crypto/bcm/cipher.c 	aead->base.cra_flags |= CRYPTO_ALG_ASYNC;
aead             4630 drivers/crypto/bcm/cipher.c 	aead->setauthsize = aead_setauthsize;
aead             4631 drivers/crypto/bcm/cipher.c 	aead->encrypt = aead_encrypt;
aead             4632 drivers/crypto/bcm/cipher.c 	aead->decrypt = aead_decrypt;
aead             4633 drivers/crypto/bcm/cipher.c 	aead->init = aead_cra_init;
aead             4634 drivers/crypto/bcm/cipher.c 	aead->exit = aead_cra_exit;
aead             4636 drivers/crypto/bcm/cipher.c 	err = crypto_register_aead(aead);
aead             4640 drivers/crypto/bcm/cipher.c 	pr_debug("  registered aead %s\n", aead->base.cra_driver_name);
aead             4692 drivers/crypto/bcm/cipher.c 			crypto_unregister_aead(&driver_algs[j].alg.aead);
aead             4853 drivers/crypto/bcm/cipher.c 			crypto_unregister_aead(&driver_algs[i].alg.aead);
aead             4855 drivers/crypto/bcm/cipher.c 				driver_algs[i].alg.aead.base.cra_driver_name);
aead              107 drivers/crypto/bcm/cipher.h 		struct aead_alg aead;
aead               89 drivers/crypto/caam/caamalg.c 	struct aead_alg aead;
aead              117 drivers/crypto/caam/caamalg.c static int aead_null_set_sh_desc(struct crypto_aead *aead)
aead              119 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              167 drivers/crypto/caam/caamalg.c static int aead_set_sh_desc(struct crypto_aead *aead)
aead              169 drivers/crypto/caam/caamalg.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead              170 drivers/crypto/caam/caamalg.c 						 struct caam_aead_alg, aead);
aead              171 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              172 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              188 drivers/crypto/caam/caamalg.c 		return aead_null_set_sh_desc(aead);
aead              308 drivers/crypto/caam/caamalg.c static int gcm_set_sh_desc(struct crypto_aead *aead)
aead              310 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              312 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              373 drivers/crypto/caam/caamalg.c static int rfc4106_set_sh_desc(struct crypto_aead *aead)
aead              375 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              377 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              441 drivers/crypto/caam/caamalg.c static int rfc4543_set_sh_desc(struct crypto_aead *aead)
aead              443 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              445 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              507 drivers/crypto/caam/caamalg.c static int chachapoly_set_sh_desc(struct crypto_aead *aead)
aead              509 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              511 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              532 drivers/crypto/caam/caamalg.c static int chachapoly_setauthsize(struct crypto_aead *aead,
aead              535 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              541 drivers/crypto/caam/caamalg.c 	return chachapoly_set_sh_desc(aead);
aead              544 drivers/crypto/caam/caamalg.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key,
aead              547 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              548 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              552 drivers/crypto/caam/caamalg.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              559 drivers/crypto/caam/caamalg.c 	return chachapoly_set_sh_desc(aead);
aead              562 drivers/crypto/caam/caamalg.c static int aead_setkey(struct crypto_aead *aead,
aead              565 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              620 drivers/crypto/caam/caamalg.c 	return aead_set_sh_desc(aead);
aead              622 drivers/crypto/caam/caamalg.c 	crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              627 drivers/crypto/caam/caamalg.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              637 drivers/crypto/caam/caamalg.c 	err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?:
aead              638 drivers/crypto/caam/caamalg.c 	      aead_setkey(aead, key, keylen);
aead              644 drivers/crypto/caam/caamalg.c static int gcm_setkey(struct crypto_aead *aead,
aead              647 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              653 drivers/crypto/caam/caamalg.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              664 drivers/crypto/caam/caamalg.c 	return gcm_set_sh_desc(aead);
aead              667 drivers/crypto/caam/caamalg.c static int rfc4106_setkey(struct crypto_aead *aead,
aead              670 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              676 drivers/crypto/caam/caamalg.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              692 drivers/crypto/caam/caamalg.c 	return rfc4106_set_sh_desc(aead);
aead              695 drivers/crypto/caam/caamalg.c static int rfc4543_setkey(struct crypto_aead *aead,
aead              698 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              704 drivers/crypto/caam/caamalg.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              720 drivers/crypto/caam/caamalg.c 	return rfc4543_set_sh_desc(aead);
aead             1092 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1093 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1153 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1154 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1155 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead             1183 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1184 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead             1217 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1218 drivers/crypto/caam/caamalg.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead             1219 drivers/crypto/caam/caamalg.c 						 struct caam_aead_alg, aead);
aead             1220 drivers/crypto/caam/caamalg.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead             1221 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1325 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1326 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1461 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1462 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1495 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1496 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1528 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1529 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1566 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1567 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1601 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1602 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1640 drivers/crypto/caam/caamalg.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1641 drivers/crypto/caam/caamalg.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             2080 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2099 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2119 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2139 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2160 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2181 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2202 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2223 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2244 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2265 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2286 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2309 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2330 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2353 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2374 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2397 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2418 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2441 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2462 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2485 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2506 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2529 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2550 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2573 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2595 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2619 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2641 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2665 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2687 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2711 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2733 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2757 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2779 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2803 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2824 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2847 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2868 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2891 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2912 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2935 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2956 drivers/crypto/caam/caamalg.c 		.aead = {
aead             2979 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3000 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3023 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3044 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3067 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3091 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3116 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3140 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3165 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3189 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3214 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3238 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3263 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3287 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3312 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3336 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3361 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3384 drivers/crypto/caam/caamalg.c 		.aead = {
aead             3462 drivers/crypto/caam/caamalg.c 		 container_of(alg, struct caam_aead_alg, aead);
aead             3494 drivers/crypto/caam/caamalg.c 			crypto_unregister_aead(&t_alg->aead);
aead             3520 drivers/crypto/caam/caamalg.c 	struct aead_alg *alg = &t_alg->aead;
aead             3663 drivers/crypto/caam/caamalg.c 		    (!md_inst || t_alg->aead.maxauthsize > md_limit))
aead             3668 drivers/crypto/caam/caamalg.c 		err = crypto_register_aead(&t_alg->aead);
aead             3671 drivers/crypto/caam/caamalg.c 				t_alg->aead.base.cra_driver_name);
aead               43 drivers/crypto/caam/caamalg_qi.c 	struct aead_alg aead;
aead               72 drivers/crypto/caam/caamalg_qi.c static int aead_set_sh_desc(struct crypto_aead *aead)
aead               74 drivers/crypto/caam/caamalg_qi.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead               75 drivers/crypto/caam/caamalg_qi.c 						 typeof(*alg), aead);
aead               76 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead               77 drivers/crypto/caam/caamalg_qi.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              187 drivers/crypto/caam/caamalg_qi.c static int aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              190 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              245 drivers/crypto/caam/caamalg_qi.c 	ret = aead_set_sh_desc(aead);
aead              271 drivers/crypto/caam/caamalg_qi.c 	crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              276 drivers/crypto/caam/caamalg_qi.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              286 drivers/crypto/caam/caamalg_qi.c 	err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?:
aead              287 drivers/crypto/caam/caamalg_qi.c 	      aead_setkey(aead, key, keylen);
aead              293 drivers/crypto/caam/caamalg_qi.c static int gcm_set_sh_desc(struct crypto_aead *aead)
aead              295 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              296 drivers/crypto/caam/caamalg_qi.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              351 drivers/crypto/caam/caamalg_qi.c static int gcm_setkey(struct crypto_aead *aead,
aead              354 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              360 drivers/crypto/caam/caamalg_qi.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              372 drivers/crypto/caam/caamalg_qi.c 	ret = gcm_set_sh_desc(aead);
aead              398 drivers/crypto/caam/caamalg_qi.c static int rfc4106_set_sh_desc(struct crypto_aead *aead)
aead              400 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              401 drivers/crypto/caam/caamalg_qi.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              457 drivers/crypto/caam/caamalg_qi.c static int rfc4106_setkey(struct crypto_aead *aead,
aead              460 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              466 drivers/crypto/caam/caamalg_qi.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              482 drivers/crypto/caam/caamalg_qi.c 	ret = rfc4106_set_sh_desc(aead);
aead              508 drivers/crypto/caam/caamalg_qi.c static int rfc4543_set_sh_desc(struct crypto_aead *aead)
aead              510 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              511 drivers/crypto/caam/caamalg_qi.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              565 drivers/crypto/caam/caamalg_qi.c static int rfc4543_setkey(struct crypto_aead *aead,
aead              568 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              574 drivers/crypto/caam/caamalg_qi.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              590 drivers/crypto/caam/caamalg_qi.c 	ret = rfc4543_set_sh_desc(aead);
aead              894 drivers/crypto/caam/caamalg_qi.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              895 drivers/crypto/caam/caamalg_qi.c 	int ivsize = crypto_aead_ivsize(aead);
aead              919 drivers/crypto/caam/caamalg_qi.c 	struct crypto_aead *aead = crypto_aead_reqtfm(aead_req);
aead              920 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *caam_ctx = crypto_aead_ctx(aead);
aead              941 drivers/crypto/caam/caamalg_qi.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              942 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              943 drivers/crypto/caam/caamalg_qi.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead              944 drivers/crypto/caam/caamalg_qi.c 						 typeof(*alg), aead);
aead             1038 drivers/crypto/caam/caamalg_qi.c 		ivsize = crypto_aead_ivsize(aead);
aead             1161 drivers/crypto/caam/caamalg_qi.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1162 drivers/crypto/caam/caamalg_qi.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1547 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1566 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1586 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1606 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1627 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1650 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1671 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1694 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1715 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1738 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1759 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1783 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1804 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1828 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1849 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1873 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1894 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1917 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1939 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1963 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             1985 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2009 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2031 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2055 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2077 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2101 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2123 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2147 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2168 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2191 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2212 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2235 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2256 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2280 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2301 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2325 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2346 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2370 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2391 drivers/crypto/caam/caamalg_qi.c 		.aead = {
aead             2474 drivers/crypto/caam/caamalg_qi.c 						      aead);
aead             2509 drivers/crypto/caam/caamalg_qi.c 			crypto_unregister_aead(&t_alg->aead);
aead             2535 drivers/crypto/caam/caamalg_qi.c 	struct aead_alg *alg = &t_alg->aead;
aead             2649 drivers/crypto/caam/caamalg_qi.c 		    (!md_inst || (t_alg->aead.maxauthsize > md_limit)))
aead             2654 drivers/crypto/caam/caamalg_qi.c 		err = crypto_register_aead(&t_alg->aead);
aead             2657 drivers/crypto/caam/caamalg_qi.c 				t_alg->aead.base.cra_driver_name);
aead               50 drivers/crypto/caam/caamalg_qi2.c 	struct aead_alg aead;
aead              163 drivers/crypto/caam/caamalg_qi2.c static int aead_set_sh_desc(struct crypto_aead *aead)
aead              165 drivers/crypto/caam/caamalg_qi2.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead              166 drivers/crypto/caam/caamalg_qi2.c 						 typeof(*alg), aead);
aead              167 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              168 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              280 drivers/crypto/caam/caamalg_qi2.c static int aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              283 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              314 drivers/crypto/caam/caamalg_qi2.c 	return aead_set_sh_desc(aead);
aead              316 drivers/crypto/caam/caamalg_qi2.c 	crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              321 drivers/crypto/caam/caamalg_qi2.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              335 drivers/crypto/caam/caamalg_qi2.c 	err = crypto_des3_ede_verify_key(crypto_aead_tfm(aead), keys.enckey) ?:
aead              336 drivers/crypto/caam/caamalg_qi2.c 	      aead_setkey(aead, key, keylen);
aead              343 drivers/crypto/caam/caamalg_qi2.c 	crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              350 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              354 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              355 drivers/crypto/caam/caamalg_qi2.c 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),
aead              356 drivers/crypto/caam/caamalg_qi2.c 						 typeof(*alg), aead);
aead              444 drivers/crypto/caam/caamalg_qi2.c 		ivsize = crypto_aead_ivsize(aead);
aead              586 drivers/crypto/caam/caamalg_qi2.c static int chachapoly_set_sh_desc(struct crypto_aead *aead)
aead              588 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              589 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              618 drivers/crypto/caam/caamalg_qi2.c static int chachapoly_setauthsize(struct crypto_aead *aead,
aead              621 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              627 drivers/crypto/caam/caamalg_qi2.c 	return chachapoly_set_sh_desc(aead);
aead              630 drivers/crypto/caam/caamalg_qi2.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key,
aead              633 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              634 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              638 drivers/crypto/caam/caamalg_qi2.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              645 drivers/crypto/caam/caamalg_qi2.c 	return chachapoly_set_sh_desc(aead);
aead              648 drivers/crypto/caam/caamalg_qi2.c static int gcm_set_sh_desc(struct crypto_aead *aead)
aead              650 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              652 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              720 drivers/crypto/caam/caamalg_qi2.c static int gcm_setkey(struct crypto_aead *aead,
aead              723 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              729 drivers/crypto/caam/caamalg_qi2.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              739 drivers/crypto/caam/caamalg_qi2.c 	return gcm_set_sh_desc(aead);
aead              742 drivers/crypto/caam/caamalg_qi2.c static int rfc4106_set_sh_desc(struct crypto_aead *aead)
aead              744 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              746 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              817 drivers/crypto/caam/caamalg_qi2.c static int rfc4106_setkey(struct crypto_aead *aead,
aead              820 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              826 drivers/crypto/caam/caamalg_qi2.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              842 drivers/crypto/caam/caamalg_qi2.c 	return rfc4106_set_sh_desc(aead);
aead              845 drivers/crypto/caam/caamalg_qi2.c static int rfc4543_set_sh_desc(struct crypto_aead *aead)
aead              847 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              849 drivers/crypto/caam/caamalg_qi2.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              918 drivers/crypto/caam/caamalg_qi2.c static int rfc4543_setkey(struct crypto_aead *aead,
aead              921 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead              927 drivers/crypto/caam/caamalg_qi2.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead              943 drivers/crypto/caam/caamalg_qi2.c 	return rfc4543_set_sh_desc(aead);
aead             1268 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1269 drivers/crypto/caam/caamalg_qi2.c 	int ivsize = crypto_aead_ivsize(aead);
aead             1295 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1296 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1316 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1317 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1333 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1334 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1361 drivers/crypto/caam/caamalg_qi2.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             1362 drivers/crypto/caam/caamalg_qi2.c 	struct caam_ctx *ctx = crypto_aead_ctx(aead);
aead             1575 drivers/crypto/caam/caamalg_qi2.c 						      aead);
aead             1725 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1744 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1764 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1784 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1805 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1828 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1849 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1872 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1893 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1916 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1937 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1961 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             1982 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2006 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2027 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2051 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2072 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2095 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2117 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2141 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2163 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2187 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2209 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2233 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2255 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2279 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2301 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2325 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2346 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2369 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2390 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2413 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2434 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2458 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2479 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2503 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2524 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2548 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2569 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2593 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2617 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2642 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2666 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2691 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2715 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2740 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2764 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2789 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2813 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2838 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2861 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2884 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2908 drivers/crypto/caam/caamalg_qi2.c 		.aead = {
aead             2949 drivers/crypto/caam/caamalg_qi2.c 	struct aead_alg *alg = &t_alg->aead;
aead             5260 drivers/crypto/caam/caamalg_qi2.c 		err = crypto_register_aead(&t_alg->aead);
aead             5263 drivers/crypto/caam/caamalg_qi2.c 				 t_alg->aead.base.cra_driver_name, err);
aead             5359 drivers/crypto/caam/caamalg_qi2.c 			crypto_unregister_aead(&t_alg->aead);
aead               34 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key,
aead               38 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead               44 drivers/crypto/cavium/nitrox/nitrox_aead.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead               61 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_aead_setauthsize(struct crypto_aead *aead,
aead               64 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead               72 drivers/crypto/cavium/nitrox/nitrox_aead.c 	aead->authsize = authsize;
aead              191 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              192 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              203 drivers/crypto/cavium/nitrox/nitrox_aead.c 	rctx->dstlen = rctx->srclen + aead->authsize;
aead              222 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              223 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              231 drivers/crypto/cavium/nitrox/nitrox_aead.c 	rctx->cryptlen = areq->cryptlen - aead->authsize;
aead              234 drivers/crypto/cavium/nitrox/nitrox_aead.c 	rctx->dstlen = rctx->srclen - aead->authsize;
aead              251 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_aead_init(struct crypto_aead *aead)
aead              253 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              275 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_gcm_common_init(struct crypto_aead *aead)
aead              278 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              281 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = nitrox_aead_init(aead);
aead              296 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_aes_gcm_init(struct crypto_aead *aead)
aead              300 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = nitrox_gcm_common_init(aead);
aead              304 drivers/crypto/cavium/nitrox/nitrox_aead.c 	crypto_aead_set_reqsize(aead,
aead              311 drivers/crypto/cavium/nitrox/nitrox_aead.c static void nitrox_aead_exit(struct crypto_aead *aead)
aead              313 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              329 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_rfc4106_setkey(struct crypto_aead *aead, const u8 *key,
aead              332 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              340 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = nitrox_aes_gcm_setkey(aead, key, keylen);
aead              348 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_rfc4106_setauthsize(struct crypto_aead *aead,
aead              360 drivers/crypto/cavium/nitrox/nitrox_aead.c 	return nitrox_aead_setauthsize(aead, authsize);
aead              412 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              413 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              422 drivers/crypto/cavium/nitrox/nitrox_aead.c 	aead_rctx->dstlen = aead_rctx->srclen + aead->authsize;
aead              444 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              445 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
aead              451 drivers/crypto/cavium/nitrox/nitrox_aead.c 	aead_rctx->cryptlen = areq->cryptlen - aead->authsize;
aead              455 drivers/crypto/cavium/nitrox/nitrox_aead.c 	aead_rctx->dstlen = aead_rctx->srclen - aead->authsize;
aead              475 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_rfc4106_init(struct crypto_aead *aead)
aead              479 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = nitrox_gcm_common_init(aead);
aead              483 drivers/crypto/cavium/nitrox/nitrox_aead.c 	crypto_aead_set_reqsize(aead, sizeof(struct aead_request) +
aead               18 drivers/crypto/ccree/cc_aead.c #define template_aead	template_u.aead
aead              648 drivers/crypto/ccree/cc_aead.c static int cc_des3_aead_setkey(struct crypto_aead *aead, const u8 *key,
aead              658 drivers/crypto/ccree/cc_aead.c 	err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?:
aead              659 drivers/crypto/ccree/cc_aead.c 	      cc_aead_setkey(aead, key, keylen);
aead              184 drivers/crypto/ccree/cc_driver.h 		struct aead_alg aead;
aead              168 drivers/crypto/chelsio/chcr_algo.c static inline int get_aead_subtype(struct crypto_aead *aead)
aead              170 drivers/crypto/chelsio/chcr_algo.c 	struct aead_alg *alg = crypto_aead_alg(aead);
aead              172 drivers/crypto/chelsio/chcr_algo.c 		container_of(alg, struct chcr_alg_template, alg.aead);
aead             2748 drivers/crypto/chelsio/chcr_algo.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead             2752 drivers/crypto/chelsio/chcr_algo.c 	m = crypto_aead_authsize(aead);
aead             3266 drivers/crypto/chelsio/chcr_algo.c static int chcr_ccm_common_setkey(struct crypto_aead *aead,
aead             3270 drivers/crypto/chelsio/chcr_algo.c 	struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead));
aead             3285 drivers/crypto/chelsio/chcr_algo.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead             3297 drivers/crypto/chelsio/chcr_algo.c static int chcr_aead_ccm_setkey(struct crypto_aead *aead,
aead             3301 drivers/crypto/chelsio/chcr_algo.c 	struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead));
aead             3305 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) &
aead             3308 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_clear_flags(aead, CRYPTO_TFM_RES_MASK);
aead             3309 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) &
aead             3313 drivers/crypto/chelsio/chcr_algo.c 	return chcr_ccm_common_setkey(aead, key, keylen);
aead             3316 drivers/crypto/chelsio/chcr_algo.c static int chcr_aead_rfc4309_setkey(struct crypto_aead *aead, const u8 *key,
aead             3319 drivers/crypto/chelsio/chcr_algo.c 	struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead));
aead             3323 drivers/crypto/chelsio/chcr_algo.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead             3328 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) &
aead             3331 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_clear_flags(aead, CRYPTO_TFM_RES_MASK);
aead             3332 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) &
aead             3338 drivers/crypto/chelsio/chcr_algo.c 	return chcr_ccm_common_setkey(aead, key, keylen);
aead             3341 drivers/crypto/chelsio/chcr_algo.c static int chcr_gcm_setkey(struct crypto_aead *aead, const u8 *key,
aead             3344 drivers/crypto/chelsio/chcr_algo.c 	struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead));
aead             3352 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead)
aead             3355 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_clear_flags(aead, CRYPTO_TFM_RES_MASK);
aead             3356 drivers/crypto/chelsio/chcr_algo.c 	crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) &
aead             3361 drivers/crypto/chelsio/chcr_algo.c 	if (get_aead_subtype(aead) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106 &&
aead             3373 drivers/crypto/chelsio/chcr_algo.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead             3909 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             3928 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             3948 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             3967 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             3986 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4007 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4029 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4049 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4070 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4091 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4112 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4133 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4155 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4175 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4196 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4217 drivers/crypto/chelsio/chcr_algo.c 		.alg.aead = {
aead             4255 drivers/crypto/chelsio/chcr_algo.c 						&driver_algs[i].alg.aead);
aead             4303 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.base.cra_flags =
aead             4305 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.encrypt = chcr_aead_encrypt;
aead             4306 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.decrypt = chcr_aead_decrypt;
aead             4307 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.init = chcr_aead_cra_init;
aead             4308 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.exit = chcr_aead_cra_exit;
aead             4309 drivers/crypto/chelsio/chcr_algo.c 			driver_algs[i].alg.aead.base.cra_module = THIS_MODULE;
aead             4310 drivers/crypto/chelsio/chcr_algo.c 			err = crypto_register_aead(&driver_algs[i].alg.aead);
aead             4311 drivers/crypto/chelsio/chcr_algo.c 			name = driver_algs[i].alg.aead.base.cra_driver_name;
aead              307 drivers/crypto/chelsio/chcr_crypto.h 		struct aead_alg aead;
aead              112 drivers/crypto/chelsio/chcr_ipsec.c 	int authsize = x->aead->alg_icv_len / 8;
aead              135 drivers/crypto/chelsio/chcr_ipsec.c 	int keylen = (x->aead->alg_key_len + 7) / 8;
aead              136 drivers/crypto/chelsio/chcr_ipsec.c 	unsigned char *key = x->aead->alg_key;
aead              226 drivers/crypto/chelsio/chcr_ipsec.c 	if (!x->aead) {
aead              230 drivers/crypto/chelsio/chcr_ipsec.c 	if (x->aead->alg_icv_len != 128 &&
aead              231 drivers/crypto/chelsio/chcr_ipsec.c 	    x->aead->alg_icv_len != 96) {
aead              235 drivers/crypto/chelsio/chcr_ipsec.c 	if ((x->aead->alg_key_len != 128 + 32) &&
aead              236 drivers/crypto/chelsio/chcr_ipsec.c 	    (x->aead->alg_key_len != 256 + 32)) {
aead             1192 drivers/crypto/inside-secure/safexcel.c 			ret = crypto_register_aead(&safexcel_algs[i]->alg.aead);
aead             1213 drivers/crypto/inside-secure/safexcel.c 			crypto_unregister_aead(&safexcel_algs[j]->alg.aead);
aead             1235 drivers/crypto/inside-secure/safexcel.c 			crypto_unregister_aead(&safexcel_algs[i]->alg.aead);
aead              769 drivers/crypto/inside-secure/safexcel.h 		struct aead_alg aead;
aead               44 drivers/crypto/inside-secure/safexcel_cipher.c 	bool aead;
aead              417 drivers/crypto/inside-secure/safexcel_cipher.c 	if (ctx->aead) {
aead              534 drivers/crypto/inside-secure/safexcel_cipher.c 	if ((!ctx->aead) && (ctx->mode == CONTEXT_CONTROL_CRYPTO_MODE_CBC) &&
aead              572 drivers/crypto/inside-secure/safexcel_cipher.c 	if (ctx->aead) {
aead              684 drivers/crypto/inside-secure/safexcel_cipher.c 	if (ctx->aead)
aead             1000 drivers/crypto/inside-secure/safexcel_cipher.c 	EIP197_REQUEST_ON_STACK(req, aead, EIP197_AEAD_REQ_SIZE);
aead             1556 drivers/crypto/inside-secure/safexcel_cipher.c 			     alg.aead.base);
aead             1565 drivers/crypto/inside-secure/safexcel_cipher.c 	ctx->aead = true;
aead             1584 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1619 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1654 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1689 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1724 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1758 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1792 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1826 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1860 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1894 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1928 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             2161 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             2284 drivers/crypto/inside-secure/safexcel_cipher.c 	.alg.aead = {
aead             1012 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key,
aead             1015 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = crypto_aead_ctx(aead);
aead             1041 drivers/crypto/mediatek/mtk-aes.c 		crypto_aead_set_flags(aead, CRYPTO_TFM_RES_BAD_KEY_LEN);
aead             1049 drivers/crypto/mediatek/mtk-aes.c 	crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) &
aead             1052 drivers/crypto/mediatek/mtk-aes.c 	crypto_aead_set_flags(aead, crypto_skcipher_get_flags(ctr) &
aead             1084 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_setauthsize(struct crypto_aead *aead,
aead             1087 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = crypto_aead_ctx(aead);
aead             1114 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_init(struct crypto_aead *aead)
aead             1116 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_gcm_ctx *ctx = crypto_aead_ctx(aead);
aead             1125 drivers/crypto/mediatek/mtk-aes.c 	crypto_aead_set_reqsize(aead, sizeof(struct mtk_aes_reqctx));
aead             1130 drivers/crypto/mediatek/mtk-aes.c static void mtk_aes_gcm_exit(struct crypto_aead *aead)
aead             1132 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_gcm_ctx *ctx = crypto_aead_ctx(aead);
aead               91 drivers/crypto/omap-aes-gcm.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead               92 drivers/crypto/omap-aes-gcm.c 	unsigned int authlen = crypto_aead_authsize(aead);
aead              304 drivers/crypto/omap-aes-gcm.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              305 drivers/crypto/omap-aes-gcm.c 	unsigned int authlen = crypto_aead_authsize(aead);
aead              312 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              323 drivers/crypto/picoxcell_crypto.c 		total += crypto_aead_authsize(aead);
aead              414 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              416 drivers/crypto/picoxcell_crypto.c 			 (req->is_encrypt ? crypto_aead_authsize(aead) : 0);
aead              417 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead_ctx *aead_ctx = crypto_aead_ctx(aead);
aead              513 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(aead_req);
aead              514 drivers/crypto/picoxcell_crypto.c 	struct aead_alg *alg = crypto_aead_alg(aead);
aead              516 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead_ctx *ctx = crypto_aead_ctx(aead);
aead              559 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(aead_req);
aead              560 drivers/crypto/picoxcell_crypto.c 	unsigned int authsize = crypto_aead_authsize(aead);
aead              561 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead_ctx *ctx = crypto_aead_ctx(aead);
aead              562 drivers/crypto/picoxcell_crypto.c 	struct aead_alg *alg = crypto_aead_alg(aead);
aead              569 drivers/crypto/picoxcell_crypto.c 		ctx->cipher_key_len, aead_req->iv, crypto_aead_ivsize(aead),
aead              632 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              633 drivers/crypto/picoxcell_crypto.c 	struct aead_alg *alg = crypto_aead_alg(aead);
aead              678 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              679 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead *alg = to_spacc_aead(crypto_aead_alg(aead));
aead              686 drivers/crypto/picoxcell_crypto.c 	struct crypto_aead *aead = crypto_aead_reqtfm(req);
aead              687 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead  *alg = to_spacc_aead(crypto_aead_alg(aead));
aead             1781 drivers/crypto/picoxcell_crypto.c 	struct spacc_aead *aead, *an;
aead             1788 drivers/crypto/picoxcell_crypto.c 	list_for_each_entry_safe(aead, an, &engine->registered_aeads, entry) {
aead             1789 drivers/crypto/picoxcell_crypto.c 		list_del(&aead->entry);
aead             1790 drivers/crypto/picoxcell_crypto.c 		crypto_unregister_aead(&aead->alg);
aead              275 drivers/crypto/qat/qat_common/qat_algs.c 				    int aead)
aead              285 drivers/crypto/qat/qat_common/qat_algs.c 	if (aead)
aead              995 drivers/crypto/talitos.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead              996 drivers/crypto/talitos.c 	struct talitos_ctx *ctx = crypto_aead_ctx(aead);
aead              997 drivers/crypto/talitos.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead              998 drivers/crypto/talitos.c 	unsigned int authsize = crypto_aead_authsize(aead);
aead             1201 drivers/crypto/talitos.c 	struct crypto_aead *aead = crypto_aead_reqtfm(areq);
aead             1202 drivers/crypto/talitos.c 	unsigned int authsize = crypto_aead_authsize(aead);
aead             1203 drivers/crypto/talitos.c 	struct talitos_ctx *ctx = crypto_aead_ctx(aead);
aead             1207 drivers/crypto/talitos.c 	unsigned int ivsize = crypto_aead_ivsize(aead);
aead             2258 drivers/crypto/talitos.c 		struct aead_alg aead;
aead             2266 drivers/crypto/talitos.c 		.alg.aead = {
aead             2287 drivers/crypto/talitos.c 		.alg.aead = {
aead             2307 drivers/crypto/talitos.c 		.alg.aead = {
aead             2331 drivers/crypto/talitos.c 		.alg.aead = {
aead             2354 drivers/crypto/talitos.c 		.alg.aead = {
aead             2375 drivers/crypto/talitos.c 		.alg.aead = {
aead             2395 drivers/crypto/talitos.c 		.alg.aead = {
aead             2419 drivers/crypto/talitos.c 		.alg.aead = {
aead             2442 drivers/crypto/talitos.c 		.alg.aead = {
aead             2463 drivers/crypto/talitos.c 		.alg.aead = {
aead             2483 drivers/crypto/talitos.c 		.alg.aead = {
aead             2507 drivers/crypto/talitos.c 		.alg.aead = {
aead             2530 drivers/crypto/talitos.c 		.alg.aead = {
aead             2550 drivers/crypto/talitos.c 		.alg.aead = {
aead             2573 drivers/crypto/talitos.c 		.alg.aead = {
aead             2593 drivers/crypto/talitos.c 		.alg.aead = {
aead             2616 drivers/crypto/talitos.c 		.alg.aead = {
aead             2637 drivers/crypto/talitos.c 		.alg.aead = {
aead             2657 drivers/crypto/talitos.c 		.alg.aead = {
aead             2680 drivers/crypto/talitos.c 		.alg.aead = {
aead             3059 drivers/crypto/talitos.c 				   algt.alg.aead);
aead             3118 drivers/crypto/talitos.c 			crypto_unregister_aead(&t_alg->algt.alg.aead);
aead             3170 drivers/crypto/talitos.c 		alg = &t_alg->algt.alg.aead.base;
aead             3172 drivers/crypto/talitos.c 		t_alg->algt.alg.aead.init = talitos_cra_init_aead;
aead             3173 drivers/crypto/talitos.c 		t_alg->algt.alg.aead.setkey = t_alg->algt.alg.aead.setkey ?:
aead             3175 drivers/crypto/talitos.c 		t_alg->algt.alg.aead.encrypt = aead_encrypt;
aead             3176 drivers/crypto/talitos.c 		t_alg->algt.alg.aead.decrypt = aead_decrypt;
aead             3472 drivers/crypto/talitos.c 					&t_alg->algt.alg.aead);
aead             3473 drivers/crypto/talitos.c 				alg = &t_alg->algt.alg.aead.base;
aead              435 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (!xs->aead) {
aead              440 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (xs->aead->alg_icv_len != IXGBE_IPSEC_AUTH_BITS) {
aead              446 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	key_data = &xs->aead->alg_key[0];
aead              447 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	key_len = xs->aead->alg_key_len;
aead              448 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	alg_name = xs->aead->alg_name;
aead              604 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 			rsa.decrypt = xs->ealg || xs->aead;
aead              714 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 			tsa.encrypt = xs->ealg || xs->aead;
aead              928 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	aead_len = sizeof(*xs->aead) + IXGBE_IPSEC_KEY_BITS / 8;
aead              929 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	xs->aead = kzalloc(aead_len, GFP_KERNEL);
aead              930 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (unlikely(!xs->aead)) {
aead              936 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	xs->geniv = algo->uinfo.aead.geniv;
aead              937 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	xs->aead->alg_icv_len = IXGBE_IPSEC_AUTH_BITS;
aead              938 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	xs->aead->alg_key_len = IXGBE_IPSEC_KEY_BITS;
aead              939 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	memcpy(xs->aead->alg_key, sam->key, sizeof(sam->key));
aead              940 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	memcpy(xs->aead->alg_name, aes_gcm_name, sizeof(aes_gcm_name));
aead              963 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	kzfree(xs->aead);
aead               37 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	memcpy(sam->key, xs->aead->alg_key, sizeof(sam->key));
aead              219 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	if (!xs->aead) {
aead              224 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	if (xs->aead->alg_icv_len != IXGBE_IPSEC_AUTH_BITS) {
aead              230 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	key_data = &xs->aead->alg_key[0];
aead              231 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	key_len = xs->aead->alg_key_len;
aead              232 drivers/net/ethernet/intel/ixgbevf/ipsec.c 	alg_name = xs->aead->alg_name;
aead              296 drivers/net/ethernet/intel/ixgbevf/ipsec.c 			rsa.decrypt = xs->ealg || xs->aead;
aead              350 drivers/net/ethernet/intel/ixgbevf/ipsec.c 			tsa.encrypt = xs->ealg || xs->aead;
aead              156 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	struct crypto_aead *aead;
aead              163 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	crypto_data_len = (x->aead->alg_key_len + 7) / 8;
aead              166 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	memcpy(aes_gcm->aes_key, x->aead->alg_key, key_len);
aead              170 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	aead = x->data;
aead              171 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	geniv_ctx = crypto_aead_ctx(aead);
aead              172 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	ivsize = crypto_aead_ivsize(aead);
aead              174 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	memcpy(&aes_gcm->salt, x->aead->alg_key + key_len,
aead              178 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	aes_gcm->icv_len = x->aead->alg_icv_len;
aead              247 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	if (!x->aead) {
aead              251 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	if (x->aead->alg_icv_len != 128) {
aead              255 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	if ((x->aead->alg_key_len != 128 + 32) &&
aead              256 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c 	    (x->aead->alg_key_len != 256 + 32)) {
aead               93 drivers/net/netdevsim/ipsec.c 	if (!xs->aead) {
aead               98 drivers/net/netdevsim/ipsec.c 	if (xs->aead->alg_icv_len != NSIM_IPSEC_AUTH_BITS) {
aead              104 drivers/net/netdevsim/ipsec.c 	key_data = &xs->aead->alg_key[0];
aead              105 drivers/net/netdevsim/ipsec.c 	key_len = xs->aead->alg_key_len;
aead              106 drivers/net/netdevsim/ipsec.c 	alg_name = xs->aead->alg_name;
aead              165 drivers/net/netdevsim/ipsec.c 		sa.crypt = xs->ealg || xs->aead;
aead               53 include/crypto/internal/aead.h static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead)
aead               55 include/crypto/internal/aead.h 	return aead_instance(crypto_tfm_alg_instance(&aead->base));
aead              110 include/crypto/internal/aead.h static inline void crypto_aead_set_reqsize(struct crypto_aead *aead,
aead              113 include/crypto/internal/aead.h 	aead->reqsize = reqsize;
aead              121 include/crypto/internal/aead.h static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead)
aead              123 include/crypto/internal/aead.h 	return crypto_aead_alg_maxauthsize(crypto_aead_alg(aead));
aead              582 include/linux/crypto.h 		struct crypto_istat_aead aead;
aead              191 include/net/xfrm.h 	struct xfrm_algo_aead	*aead;
aead             1386 include/net/xfrm.h 		struct xfrm_algo_aead_info aead;
aead               44 net/ipv4/esp4.c static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int extralen)
aead               50 net/ipv4/esp4.c 	len += crypto_aead_ivsize(aead);
aead               53 net/ipv4/esp4.c 		len += crypto_aead_alignmask(aead) &
aead               58 net/ipv4/esp4.c 	len += sizeof(struct aead_request) + crypto_aead_reqsize(aead);
aead               71 net/ipv4/esp4.c static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int extralen)
aead               73 net/ipv4/esp4.c 	return crypto_aead_ivsize(aead) ?
aead               75 net/ipv4/esp4.c 			 crypto_aead_alignmask(aead) + 1) : tmp + extralen;
aead               78 net/ipv4/esp4.c static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv)
aead               82 net/ipv4/esp4.c 	req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead),
aead               84 net/ipv4/esp4.c 	aead_request_set_tfm(req, aead);
aead               88 net/ipv4/esp4.c static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead,
aead               92 net/ipv4/esp4.c 			     crypto_aead_reqsize(aead),
aead               99 net/ipv4/esp4.c 	struct crypto_aead *aead = x->data;
aead              109 net/ipv4/esp4.c 	iv = esp_tmp_iv(aead, tmp, extralen);
aead              110 net/ipv4/esp4.c 	req = esp_tmp_req(aead, iv);
aead              375 net/ipv4/esp4.c 	struct crypto_aead *aead;
aead              389 net/ipv4/esp4.c 	aead = x->data;
aead              390 net/ipv4/esp4.c 	alen = crypto_aead_authsize(aead);
aead              391 net/ipv4/esp4.c 	ivlen = crypto_aead_ivsize(aead);
aead              393 net/ipv4/esp4.c 	tmp = esp_alloc_tmp(aead, esp->nfrags + 2, extralen);
aead              398 net/ipv4/esp4.c 	iv = esp_tmp_iv(aead, tmp, extralen);
aead              399 net/ipv4/esp4.c 	req = esp_tmp_req(aead, iv);
aead              400 net/ipv4/esp4.c 	sg = esp_req_sg(aead, req);
aead              489 net/ipv4/esp4.c 	struct crypto_aead *aead;
aead              499 net/ipv4/esp4.c 	aead = x->data;
aead              500 net/ipv4/esp4.c 	alen = crypto_aead_authsize(aead);
aead              511 net/ipv4/esp4.c 	blksize = ALIGN(crypto_aead_blocksize(aead), 4);
aead              538 net/ipv4/esp4.c 	struct crypto_aead *aead = x->data;
aead              545 net/ipv4/esp4.c 	alen = crypto_aead_authsize(aead);
aead              546 net/ipv4/esp4.c 	hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead);
aead              584 net/ipv4/esp4.c 	struct crypto_aead *aead = x->data;
aead              585 net/ipv4/esp4.c 	int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead);
aead              698 net/ipv4/esp4.c 	struct crypto_aead *aead = x->data;
aead              701 net/ipv4/esp4.c 	int ivlen = crypto_aead_ivsize(aead);
aead              747 net/ipv4/esp4.c 	tmp = esp_alloc_tmp(aead, nfrags, seqhilen);
aead              753 net/ipv4/esp4.c 	iv = esp_tmp_iv(aead, tmp, seqhilen);
aead              754 net/ipv4/esp4.c 	req = esp_tmp_req(aead, iv);
aead              755 net/ipv4/esp4.c 	sg = esp_req_sg(aead, req);
aead              822 net/ipv4/esp4.c 	struct crypto_aead *aead = x->data;
aead              824 net/ipv4/esp4.c 	if (!aead)
aead              827 net/ipv4/esp4.c 	crypto_free_aead(aead);
aead              833 net/ipv4/esp4.c 	struct crypto_aead *aead;
aead              838 net/ipv4/esp4.c 		     x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME)
aead              841 net/ipv4/esp4.c 	aead = crypto_alloc_aead(aead_name, 0, 0);
aead              842 net/ipv4/esp4.c 	err = PTR_ERR(aead);
aead              843 net/ipv4/esp4.c 	if (IS_ERR(aead))
aead              846 net/ipv4/esp4.c 	x->data = aead;
aead              848 net/ipv4/esp4.c 	err = crypto_aead_setkey(aead, x->aead->alg_key,
aead              849 net/ipv4/esp4.c 				 (x->aead->alg_key_len + 7) / 8);
aead              853 net/ipv4/esp4.c 	err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8);
aead              863 net/ipv4/esp4.c 	struct crypto_aead *aead;
aead              896 net/ipv4/esp4.c 	aead = crypto_alloc_aead(authenc_name, 0, 0);
aead              897 net/ipv4/esp4.c 	err = PTR_ERR(aead);
aead              898 net/ipv4/esp4.c 	if (IS_ERR(aead))
aead              901 net/ipv4/esp4.c 	x->data = aead;
aead              928 net/ipv4/esp4.c 		    crypto_aead_authsize(aead)) {
aead              931 net/ipv4/esp4.c 				crypto_aead_authsize(aead),
aead              937 net/ipv4/esp4.c 			aead, x->aalg->alg_trunc_len / 8);
aead              945 net/ipv4/esp4.c 	err = crypto_aead_setkey(aead, key, keylen);
aead              956 net/ipv4/esp4.c 	struct crypto_aead *aead;
aead              962 net/ipv4/esp4.c 	if (x->aead)
aead              970 net/ipv4/esp4.c 	aead = x->data;
aead              973 net/ipv4/esp4.c 			      crypto_aead_ivsize(aead);
aead              994 net/ipv4/esp4.c 	align = ALIGN(crypto_aead_blocksize(aead), 4);
aead              995 net/ipv4/esp4.c 	x->props.trailer_len = align + 1 + crypto_aead_authsize(aead);
aead              152 net/ipv4/esp4_offload.c 	struct crypto_aead *aead;
aead              165 net/ipv4/esp4_offload.c 	aead = x->data;
aead              171 net/ipv4/esp4_offload.c 	if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)))
aead              174 net/ipv4/esp4_offload.c 	__skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead));
aead              192 net/ipv4/esp4_offload.c 	struct crypto_aead *aead = x->data;
aead              195 net/ipv4/esp4_offload.c 	if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead)))
aead              211 net/ipv4/esp4_offload.c 	struct crypto_aead *aead;
aead              234 net/ipv4/esp4_offload.c 	aead = x->data;
aead              235 net/ipv4/esp4_offload.c 	alen = crypto_aead_authsize(aead);
aead              240 net/ipv4/esp4_offload.c 	blksize = ALIGN(crypto_aead_blocksize(aead), 4);
aead               53 net/ipv6/esp6.c static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen)
aead               59 net/ipv6/esp6.c 	len += crypto_aead_ivsize(aead);
aead               62 net/ipv6/esp6.c 		len += crypto_aead_alignmask(aead) &
aead               67 net/ipv6/esp6.c 	len += sizeof(struct aead_request) + crypto_aead_reqsize(aead);
aead               80 net/ipv6/esp6.c static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen)
aead               82 net/ipv6/esp6.c 	return crypto_aead_ivsize(aead) ?
aead               84 net/ipv6/esp6.c 			 crypto_aead_alignmask(aead) + 1) : tmp + seqhilen;
aead               87 net/ipv6/esp6.c static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv)
aead               91 net/ipv6/esp6.c 	req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead),
aead               93 net/ipv6/esp6.c 	aead_request_set_tfm(req, aead);
aead               97 net/ipv6/esp6.c static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead,
aead              101 net/ipv6/esp6.c 			     crypto_aead_reqsize(aead),
aead              107 net/ipv6/esp6.c 	struct crypto_aead *aead = x->data;
aead              116 net/ipv6/esp6.c 	iv = esp_tmp_iv(aead, tmp, seqhilen);
aead              117 net/ipv6/esp6.c 	req = esp_tmp_req(aead, iv);
aead              319 net/ipv6/esp6.c 	struct crypto_aead *aead;
aead              331 net/ipv6/esp6.c 	aead = x->data;
aead              332 net/ipv6/esp6.c 	alen = crypto_aead_authsize(aead);
aead              333 net/ipv6/esp6.c 	ivlen = crypto_aead_ivsize(aead);
aead              335 net/ipv6/esp6.c 	tmp = esp_alloc_tmp(aead, esp->nfrags + 2, seqhilen);
aead              340 net/ipv6/esp6.c 	iv = esp_tmp_iv(aead, tmp, seqhilen);
aead              341 net/ipv6/esp6.c 	req = esp_tmp_req(aead, iv);
aead              342 net/ipv6/esp6.c 	sg = esp_req_sg(aead, req);
aead              430 net/ipv6/esp6.c 	struct crypto_aead *aead;
aead              440 net/ipv6/esp6.c 	aead = x->data;
aead              441 net/ipv6/esp6.c 	alen = crypto_aead_authsize(aead);
aead              452 net/ipv6/esp6.c 	blksize = ALIGN(crypto_aead_blocksize(aead), 4);
aead              477 net/ipv6/esp6.c 	struct crypto_aead *aead = x->data;
aead              484 net/ipv6/esp6.c 	alen = crypto_aead_authsize(aead);
aead              485 net/ipv6/esp6.c 	hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead);
aead              522 net/ipv6/esp6.c 	struct crypto_aead *aead = x->data;
aead              523 net/ipv6/esp6.c 	int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead);
aead              593 net/ipv6/esp6.c 	struct crypto_aead *aead = x->data;
aead              596 net/ipv6/esp6.c 	int ivlen = crypto_aead_ivsize(aead);
aead              646 net/ipv6/esp6.c 	tmp = esp_alloc_tmp(aead, nfrags, seqhilen);
aead              652 net/ipv6/esp6.c 	iv = esp_tmp_iv(aead, tmp, seqhilen);
aead              653 net/ipv6/esp6.c 	req = esp_tmp_req(aead, iv);
aead              654 net/ipv6/esp6.c 	sg = esp_req_sg(aead, req);
aead              717 net/ipv6/esp6.c 	struct crypto_aead *aead = x->data;
aead              719 net/ipv6/esp6.c 	if (!aead)
aead              722 net/ipv6/esp6.c 	crypto_free_aead(aead);
aead              728 net/ipv6/esp6.c 	struct crypto_aead *aead;
aead              733 net/ipv6/esp6.c 		     x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME)
aead              736 net/ipv6/esp6.c 	aead = crypto_alloc_aead(aead_name, 0, 0);
aead              737 net/ipv6/esp6.c 	err = PTR_ERR(aead);
aead              738 net/ipv6/esp6.c 	if (IS_ERR(aead))
aead              741 net/ipv6/esp6.c 	x->data = aead;
aead              743 net/ipv6/esp6.c 	err = crypto_aead_setkey(aead, x->aead->alg_key,
aead              744 net/ipv6/esp6.c 				 (x->aead->alg_key_len + 7) / 8);
aead              748 net/ipv6/esp6.c 	err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8);
aead              758 net/ipv6/esp6.c 	struct crypto_aead *aead;
aead              791 net/ipv6/esp6.c 	aead = crypto_alloc_aead(authenc_name, 0, 0);
aead              792 net/ipv6/esp6.c 	err = PTR_ERR(aead);
aead              793 net/ipv6/esp6.c 	if (IS_ERR(aead))
aead              796 net/ipv6/esp6.c 	x->data = aead;
aead              823 net/ipv6/esp6.c 		    crypto_aead_authsize(aead)) {
aead              826 net/ipv6/esp6.c 				crypto_aead_authsize(aead),
aead              832 net/ipv6/esp6.c 			aead, x->aalg->alg_trunc_len / 8);
aead              840 net/ipv6/esp6.c 	err = crypto_aead_setkey(aead, key, keylen);
aead              851 net/ipv6/esp6.c 	struct crypto_aead *aead;
aead              860 net/ipv6/esp6.c 	if (x->aead)
aead              868 net/ipv6/esp6.c 	aead = x->data;
aead              871 net/ipv6/esp6.c 			      crypto_aead_ivsize(aead);
aead              886 net/ipv6/esp6.c 	align = ALIGN(crypto_aead_blocksize(aead), 4);
aead              887 net/ipv6/esp6.c 	x->props.trailer_len = align + 1 + crypto_aead_authsize(aead);
aead              186 net/ipv6/esp6_offload.c 	struct crypto_aead *aead;
aead              199 net/ipv6/esp6_offload.c 	aead = x->data;
aead              205 net/ipv6/esp6_offload.c 	if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)))
aead              208 net/ipv6/esp6_offload.c 	__skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead));
aead              224 net/ipv6/esp6_offload.c 	struct crypto_aead *aead = x->data;
aead              227 net/ipv6/esp6_offload.c 	if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead)))
aead              244 net/ipv6/esp6_offload.c 	struct crypto_aead *aead;
aead              265 net/ipv6/esp6_offload.c 	aead = x->data;
aead              266 net/ipv6/esp6_offload.c 	alen = crypto_aead_authsize(aead);
aead              271 net/ipv6/esp6_offload.c 	blksize = ALIGN(crypto_aead_blocksize(aead), 4);
aead               49 net/tls/tls_device_fallback.c 			  struct crypto_aead *aead, char *aad,
aead              121 net/tls/tls_device_fallback.c 				  struct crypto_aead *aead)
aead              123 net/tls/tls_device_fallback.c 	aead_request_set_tfm(aead_req, aead);
aead              127 net/tls/tls_device_fallback.c static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead,
aead              131 net/tls/tls_device_fallback.c 		crypto_aead_reqsize(aead);
aead              136 net/tls/tls_device_fallback.c 		tls_init_aead_request(aead_req, aead);
aead              141 net/tls/tls_device_fallback.c 			   struct crypto_aead *aead, struct scatterlist *sg_in,
aead              152 net/tls/tls_device_fallback.c 		rc = tls_enc_record(aead_req, aead, aad, iv,
aead             2269 net/tls/tls_sw.c 	struct crypto_aead **aead;
aead             2313 net/tls/tls_sw.c 		aead = &sw_ctx_tx->aead_send;
aead             2323 net/tls/tls_sw.c 		aead = &sw_ctx_rx->aead_recv;
aead             2422 net/tls/tls_sw.c 	if (!*aead) {
aead             2423 net/tls/tls_sw.c 		*aead = crypto_alloc_aead(cipher_name, 0, 0);
aead             2424 net/tls/tls_sw.c 		if (IS_ERR(*aead)) {
aead             2425 net/tls/tls_sw.c 			rc = PTR_ERR(*aead);
aead             2426 net/tls/tls_sw.c 			*aead = NULL;
aead             2433 net/tls/tls_sw.c 	rc = crypto_aead_setkey(*aead, key, keysize);
aead             2438 net/tls/tls_sw.c 	rc = crypto_aead_setauthsize(*aead, prot->tag_size);
aead             2462 net/tls/tls_sw.c 	crypto_free_aead(*aead);
aead             2463 net/tls/tls_sw.c 	*aead = NULL;
aead               31 net/xfrm/xfrm_algo.c 		.aead = {
aead               50 net/xfrm/xfrm_algo.c 		.aead = {
aead               69 net/xfrm/xfrm_algo.c 		.aead = {
aead               88 net/xfrm/xfrm_algo.c 		.aead = {
aead              107 net/xfrm/xfrm_algo.c 		.aead = {
aead              126 net/xfrm/xfrm_algo.c 		.aead = {
aead              145 net/xfrm/xfrm_algo.c 		.aead = {
aead              164 net/xfrm/xfrm_algo.c 		.aead = {
aead              734 net/xfrm/xfrm_algo.c 	const struct xfrm_aead_name *aead = data;
aead              735 net/xfrm/xfrm_algo.c 	const char *name = aead->name;
aead              737 net/xfrm/xfrm_algo.c 	return aead->icvbits == entry->uinfo.aead.icv_truncbits && name &&
aead              484 net/xfrm/xfrm_state.c 	kfree(x->aead);
aead             1465 net/xfrm/xfrm_state.c 	if (orig->aead) {
aead             1466 net/xfrm/xfrm_state.c 		x->aead = xfrm_algo_aead_clone(orig->aead);
aead             1468 net/xfrm/xfrm_state.c 		if (!x->aead)
aead             2413 net/xfrm/xfrm_state.c 	struct crypto_aead *aead;
aead             2420 net/xfrm/xfrm_state.c 	aead = x->data;
aead             2421 net/xfrm/xfrm_state.c 	blksize = ALIGN(crypto_aead_blocksize(aead), 4);
aead             2438 net/xfrm/xfrm_state.c 	return ((mtu - x->props.header_len - crypto_aead_authsize(aead) -
aead              420 net/xfrm/xfrm_user.c 	x->aead = p;
aead              421 net/xfrm/xfrm_user.c 	x->geniv = algo->uinfo.aead.geniv;
aead              908 net/xfrm/xfrm_user.c 	if (x->aead) {
aead              909 net/xfrm/xfrm_user.c 		ret = nla_put(skb, XFRMA_ALG_AEAD, aead_len(x->aead), x->aead);
aead             2788 net/xfrm/xfrm_user.c 	if (x->aead)
aead             2789 net/xfrm/xfrm_user.c 		l += nla_total_size(aead_len(x->aead));