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