Lines Matching refs:alg

37 	struct sk_buff *skb, struct crypto_alg *alg)  in crypto_akcipher_report()  argument
49 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
52 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument
60 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
62 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
68 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
70 if (alg->exit) in crypto_akcipher_init_tfm()
73 if (alg->init) in crypto_akcipher_init_tfm()
74 return alg->init(akcipher); in crypto_akcipher_init_tfm()
119 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg() argument
121 struct crypto_alg *base = &alg->base; in akcipher_prepare_alg()
139 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher() argument
141 struct crypto_alg *base = &alg->base; in crypto_register_akcipher()
143 if (!alg->encrypt) in crypto_register_akcipher()
144 alg->encrypt = akcipher_default_op; in crypto_register_akcipher()
145 if (!alg->decrypt) in crypto_register_akcipher()
146 alg->decrypt = akcipher_default_op; in crypto_register_akcipher()
147 if (!alg->set_priv_key) in crypto_register_akcipher()
148 alg->set_priv_key = akcipher_default_set_key; in crypto_register_akcipher()
150 akcipher_prepare_alg(alg); in crypto_register_akcipher()
155 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher() argument
157 crypto_unregister_alg(&alg->base); in crypto_unregister_akcipher()
166 akcipher_prepare_alg(&inst->alg); in akcipher_register_instance()