Lines Matching refs:alg

24 	struct sk_buff *skb, struct crypto_alg *alg)  in crypto_akcipher_report()  argument
36 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
39 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument
47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
49 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
55 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
57 if (alg->exit) in crypto_akcipher_init_tfm()
60 if (alg->init) in crypto_akcipher_init_tfm()
61 return alg->init(akcipher); in crypto_akcipher_init_tfm()
74 struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report_stat() argument
76 struct akcipher_alg *akcipher = __crypto_akcipher_alg(alg); in crypto_akcipher_report_stat()
132 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg() argument
134 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg); in akcipher_prepare_alg()
135 struct crypto_alg *base = &alg->base; in akcipher_prepare_alg()
156 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher() argument
158 struct crypto_alg *base = &alg->base; in crypto_register_akcipher()
160 if (!alg->sign) in crypto_register_akcipher()
161 alg->sign = akcipher_default_op; in crypto_register_akcipher()
162 if (!alg->verify) in crypto_register_akcipher()
163 alg->verify = akcipher_default_op; in crypto_register_akcipher()
164 if (!alg->encrypt) in crypto_register_akcipher()
165 alg->encrypt = akcipher_default_op; in crypto_register_akcipher()
166 if (!alg->decrypt) in crypto_register_akcipher()
167 alg->decrypt = akcipher_default_op; in crypto_register_akcipher()
168 if (!alg->set_priv_key) in crypto_register_akcipher()
169 alg->set_priv_key = akcipher_default_set_key; in crypto_register_akcipher()
171 akcipher_prepare_alg(alg); in crypto_register_akcipher()
176 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher() argument
178 crypto_unregister_alg(&alg->base); in crypto_unregister_akcipher()
187 akcipher_prepare_alg(&inst->alg); in akcipher_register_instance()