Lines Matching refs:aead

85 	struct crypto_aead *aead = crypto_aead_reqtfm(req);  in crypto_aead_encrypt()  local
87 if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY) in crypto_aead_encrypt()
90 return crypto_aead_alg(aead)->encrypt(req); in crypto_aead_encrypt()
96 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_decrypt() local
98 if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY) in crypto_aead_decrypt()
101 if (req->cryptlen < crypto_aead_authsize(aead)) in crypto_aead_decrypt()
104 return crypto_aead_alg(aead)->decrypt(req); in crypto_aead_decrypt()
110 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm() local
111 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm()
113 alg->exit(aead); in crypto_aead_exit_tfm()
118 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm() local
119 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm()
121 crypto_aead_set_flags(aead, CRYPTO_TFM_NEED_KEY); in crypto_aead_init_tfm()
123 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
126 aead->base.exit = crypto_aead_exit_tfm; in crypto_aead_init_tfm()
129 return alg->init(aead); in crypto_aead_init_tfm()
138 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_report() local
146 raead.maxauthsize = aead->maxauthsize; in crypto_aead_report()
147 raead.ivsize = aead->ivsize; in crypto_aead_report()
156 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_show() local
162 seq_printf(m, "ivsize : %u\n", aead->ivsize); in crypto_aead_show()
163 seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); in crypto_aead_show()
169 struct aead_instance *aead = aead_instance(inst); in crypto_aead_free_instance() local
171 aead->free(aead); in crypto_aead_free_instance()