Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 6 of 6) sorted by relevance

/crypto/
Drng.c113 struct crypto_rng *rng; in crypto_get_default_rng() local
118 rng = crypto_alloc_rng("stdrng", 0, 0); in crypto_get_default_rng()
119 err = PTR_ERR(rng); in crypto_get_default_rng()
120 if (IS_ERR(rng)) in crypto_get_default_rng()
123 err = crypto_rng_reset(rng, NULL, crypto_rng_seedsize(rng)); in crypto_get_default_rng()
125 crypto_free_rng(rng); in crypto_get_default_rng()
129 crypto_default_rng = rng; in crypto_get_default_rng()
Dkrng.c39 .rng = {
Dansi_cprng.c434 .rng = {
452 .rng = {
DMakefile95 obj-$(CONFIG_CRYPTO_RNG2) += rng.o
Dtestmgr.c1711 struct crypto_rng *rng; in alg_test_cprng() local
1714 rng = crypto_alloc_rng(driver, type, mask); in alg_test_cprng()
1715 if (IS_ERR(rng)) { in alg_test_cprng()
1717 "%ld\n", driver, PTR_ERR(rng)); in alg_test_cprng()
1718 return PTR_ERR(rng); in alg_test_cprng()
1721 err = test_cprng(rng, desc->suite.cprng.vecs, desc->suite.cprng.count); in alg_test_cprng()
1723 crypto_free_rng(rng); in alg_test_cprng()
Ddrbg.c1931 alg->cra_u.rng.rng_make_random = drbg_kcapi_random; in drbg_fill_array()
1932 alg->cra_u.rng.rng_reset = drbg_kcapi_reset; in drbg_fill_array()
1933 alg->cra_u.rng.seedsize = 0; in drbg_fill_array()