Lines Matching defs:alg
24 struct sk_buff *skb, struct crypto_alg *alg)
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)
47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher);
49 alg->exit(akcipher);
55 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher);
57 if (alg->exit)
60 if (alg->init)
61 return alg->init(akcipher);
74 struct sk_buff *skb, struct crypto_alg *alg)
76 struct akcipher_alg *akcipher = __crypto_akcipher_alg(alg);
132 static void akcipher_prepare_alg(struct akcipher_alg *alg)
134 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg);
135 struct crypto_alg *base = &alg->base;
156 int crypto_register_akcipher(struct akcipher_alg *alg)
158 struct crypto_alg *base = &alg->base;
160 if (!alg->sign)
161 alg->sign = akcipher_default_op;
162 if (!alg->verify)
163 alg->verify = akcipher_default_op;
164 if (!alg->encrypt)
165 alg->encrypt = akcipher_default_op;
166 if (!alg->decrypt)
167 alg->decrypt = akcipher_default_op;
168 if (!alg->set_priv_key)
169 alg->set_priv_key = akcipher_default_set_key;
171 akcipher_prepare_alg(alg);
176 void crypto_unregister_akcipher(struct akcipher_alg *alg)
178 crypto_unregister_alg(&alg->base);
187 akcipher_prepare_alg(&inst->alg);