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