Lines Matching refs:alg
33 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_reset() local
48 crypto_stats_get(alg); in crypto_rng_reset()
50 crypto_stats_rng_seed(alg, err); in crypto_rng_reset()
62 static unsigned int seedsize(struct crypto_alg *alg) in seedsize() argument
64 struct rng_alg *ralg = container_of(alg, struct rng_alg, base); in seedsize()
70 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument
78 rrng.seedsize = seedsize(alg); in crypto_rng_report()
83 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument
89 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg)
91 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show() argument
94 seq_printf(m, "seedsize : %u\n", seedsize(alg)); in crypto_rng_show()
177 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng() argument
179 struct crypto_alg *base = &alg->base; in crypto_register_rng()
181 if (alg->seedsize > PAGE_SIZE / 8) in crypto_register_rng()
192 void crypto_unregister_rng(struct rng_alg *alg) in crypto_unregister_rng() argument
194 crypto_unregister_alg(&alg->base); in crypto_unregister_rng()