Lines Matching refs:alg
29 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report() argument
44 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report() argument
50 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
53 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument
61 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
63 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
69 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
71 if (alg->exit) in crypto_akcipher_init_tfm()
74 if (alg->init) in crypto_akcipher_init_tfm()
75 return alg->init(akcipher); in crypto_akcipher_init_tfm()
116 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg() argument
118 struct crypto_alg *base = &alg->base; in akcipher_prepare_alg()
125 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher() argument
127 struct crypto_alg *base = &alg->base; in crypto_register_akcipher()
129 akcipher_prepare_alg(alg); in crypto_register_akcipher()
134 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher() argument
136 crypto_unregister_alg(&alg->base); in crypto_unregister_akcipher()
143 akcipher_prepare_alg(&inst->alg); in akcipher_register_instance()