Lines Matching refs:aead

85 	struct crypto_aead *aead = crypto_aead_reqtfm(req);  in crypto_aead_encrypt()  local
86 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_encrypt()
91 if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY) in crypto_aead_encrypt()
94 ret = crypto_aead_alg(aead)->encrypt(req); in crypto_aead_encrypt()
102 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_decrypt() local
103 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_decrypt()
108 if (crypto_aead_get_flags(aead) & CRYPTO_TFM_NEED_KEY) in crypto_aead_decrypt()
110 else if (req->cryptlen < crypto_aead_authsize(aead)) in crypto_aead_decrypt()
113 ret = crypto_aead_alg(aead)->decrypt(req); in crypto_aead_decrypt()
121 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm() local
122 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm()
124 alg->exit(aead); in crypto_aead_exit_tfm()
129 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm() local
130 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm()
132 crypto_aead_set_flags(aead, CRYPTO_TFM_NEED_KEY); in crypto_aead_init_tfm()
134 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
137 aead->base.exit = crypto_aead_exit_tfm; in crypto_aead_init_tfm()
140 return alg->init(aead); in crypto_aead_init_tfm()
149 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_report() local
157 raead.maxauthsize = aead->maxauthsize; in crypto_aead_report()
158 raead.ivsize = aead->ivsize; in crypto_aead_report()
173 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_show() local
179 seq_printf(m, "ivsize : %u\n", aead->ivsize); in crypto_aead_show()
180 seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); in crypto_aead_show()
186 struct aead_instance *aead = aead_instance(inst); in crypto_aead_free_instance() local
188 aead->free(aead); in crypto_aead_free_instance()