Lines Matching refs:alg
24 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg)
36 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg)
42 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
45 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
53 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher);
55 alg->exit(akcipher);
61 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher);
63 if (alg->exit)
66 if (alg->init)
67 return alg->init(akcipher);
109 static void akcipher_prepare_alg(struct akcipher_alg *alg)
111 struct crypto_alg *base = &alg->base;
129 int crypto_register_akcipher(struct akcipher_alg *alg)
131 struct crypto_alg *base = &alg->base;
133 if (!alg->sign)
134 alg->sign = akcipher_default_op;
135 if (!alg->verify)
136 alg->verify = akcipher_default_op;
137 if (!alg->encrypt)
138 alg->encrypt = akcipher_default_op;
139 if (!alg->decrypt)
140 alg->decrypt = akcipher_default_op;
141 if (!alg->set_priv_key)
142 alg->set_priv_key = akcipher_default_set_key;
144 akcipher_prepare_alg(alg);
149 void crypto_unregister_akcipher(struct akcipher_alg *alg)
151 crypto_unregister_alg(&alg->base);
160 akcipher_prepare_alg(&inst->alg);