Lines Matching defs:alg
33 struct rng_alg *alg = crypto_rng_alg(tfm);
38 atomic64_inc(&rng_get_stat(alg)->seed_cnt);
52 err = alg->seed(tfm, seed, slen);
56 return crypto_rng_errstat(alg, err);
65 static unsigned int seedsize(struct crypto_alg *alg)
67 struct rng_alg *ralg = container_of(alg, struct rng_alg, base);
73 struct sk_buff *skb, struct crypto_alg *alg)
81 rrng.seedsize = seedsize(alg);
86 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg)
88 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg)
91 seq_printf(m, "seedsize : %u\n", seedsize(alg));
95 struct sk_buff *skb, struct crypto_alg *alg)
97 struct rng_alg *rng = __crypto_rng_alg(alg);
200 int crypto_register_rng(struct rng_alg *alg)
202 struct crypto_istat_rng *istat = rng_get_stat(alg);
203 struct crypto_alg *base = &alg->base;
205 if (alg->seedsize > PAGE_SIZE / 8)
219 void crypto_unregister_rng(struct rng_alg *alg)
221 crypto_unregister_alg(&alg->base);