Lines Matching refs:alg
33 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_reset() local
37 crypto_stats_get(alg); in crypto_rng_reset()
41 crypto_alg_put(alg); in crypto_rng_reset()
47 crypto_alg_put(alg); in crypto_rng_reset()
54 crypto_stats_rng_seed(alg, err); in crypto_rng_reset()
66 static unsigned int seedsize(struct crypto_alg *alg) in seedsize() argument
68 struct rng_alg *ralg = container_of(alg, struct rng_alg, base); in seedsize()
74 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument
82 rrng.seedsize = seedsize(alg); in crypto_rng_report()
87 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument
93 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg)
95 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show() argument
98 seq_printf(m, "seedsize : %u\n", seedsize(alg)); in crypto_rng_show()
181 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng() argument
183 struct crypto_alg *base = &alg->base; in crypto_register_rng()
185 if (alg->seedsize > PAGE_SIZE / 8) in crypto_register_rng()
196 void crypto_unregister_rng(struct rng_alg *alg) in crypto_unregister_rng() argument
198 crypto_unregister_alg(&alg->base); in crypto_unregister_rng()