Lines Matching refs:alg

86 	struct crypto_alg *alg = aead->base.__crt_alg;  in crypto_aead_encrypt()  local
90 crypto_stats_get(alg); in crypto_aead_encrypt()
95 crypto_stats_aead_encrypt(cryptlen, alg, ret); in crypto_aead_encrypt()
103 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_decrypt() local
107 crypto_stats_get(alg); in crypto_aead_decrypt()
114 crypto_stats_aead_decrypt(cryptlen, alg, ret); in crypto_aead_decrypt()
122 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local
124 alg->exit(aead); in crypto_aead_exit_tfm()
130 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local
134 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
136 if (alg->exit) in crypto_aead_init_tfm()
139 if (alg->init) in crypto_aead_init_tfm()
140 return alg->init(aead); in crypto_aead_init_tfm()
146 static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report() argument
149 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_report()
156 raead.blocksize = alg->cra_blocksize; in crypto_aead_report()
163 static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report() argument
169 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
171 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) in crypto_aead_show() argument
173 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_show()
176 seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ? in crypto_aead_show()
178 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); in crypto_aead_show()
220 static int aead_prepare_alg(struct aead_alg *alg) in aead_prepare_alg() argument
222 struct crypto_alg *base = &alg->base; in aead_prepare_alg()
224 if (max3(alg->maxauthsize, alg->ivsize, alg->chunksize) > in aead_prepare_alg()
228 if (!alg->chunksize) in aead_prepare_alg()
229 alg->chunksize = base->cra_blocksize; in aead_prepare_alg()
238 int crypto_register_aead(struct aead_alg *alg) in crypto_register_aead() argument
240 struct crypto_alg *base = &alg->base; in crypto_register_aead()
243 err = aead_prepare_alg(alg); in crypto_register_aead()
251 void crypto_unregister_aead(struct aead_alg *alg) in crypto_unregister_aead() argument
253 crypto_unregister_alg(&alg->base); in crypto_unregister_aead()
294 err = aead_prepare_alg(&inst->alg); in aead_register_instance()