Searched defs:rng (Results 1 - 2 of 2) sorted by relevance

/crypto/
H A Drng.c16 #include <crypto/internal/rng.h>
68 strncpy(rrng.type, "rng", sizeof(rrng.type));
91 seq_printf(m, "type : rng\n");
113 struct crypto_rng *rng; local
118 rng = crypto_alloc_rng("stdrng", 0, 0);
119 err = PTR_ERR(rng);
120 if (IS_ERR(rng))
123 err = crypto_rng_reset(rng, NULL, crypto_rng_seedsize(rng));
125 crypto_free_rng(rng);
[all...]
H A Dtestmgr.c29 #include <crypto/rng.h>
1374 printk(KERN_ERR "alg: cprng: Failed to reset rng "
1613 struct crypto_rng *rng; local
1616 rng = crypto_alloc_rng(driver, type, mask);
1617 if (IS_ERR(rng)) {
1619 "%ld\n", driver, PTR_ERR(rng));
1620 return PTR_ERR(rng);
1623 err = test_cprng(rng, desc->suite.cprng.vecs, desc->suite.cprng.count);
1625 crypto_free_rng(rng);

Completed in 60 milliseconds