Home
last modified time | relevance | path

Searched refs:entropy_collector (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/crypto/
Djitterentropy.c660 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local
662 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()
663 if (!entropy_collector) in jent_entropy_collector_alloc()
670 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()
671 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()
672 jent_zfree(entropy_collector); in jent_entropy_collector_alloc()
675 entropy_collector->memblocksize = JENT_MEMORY_BLOCKSIZE; in jent_entropy_collector_alloc()
676 entropy_collector->memblocks = JENT_MEMORY_BLOCKS; in jent_entropy_collector_alloc()
677 entropy_collector->memaccessloops = JENT_MEMORY_ACCESSLOOPS; in jent_entropy_collector_alloc()
683 entropy_collector->osr = osr; in jent_entropy_collector_alloc()
[all …]
Djitterentropy-kcapi.c110 struct rand_data *entropy_collector; member
119 rng->entropy_collector = jent_entropy_collector_alloc(1, 0); in jent_kcapi_init()
120 if (!rng->entropy_collector) in jent_kcapi_init()
132 if (rng->entropy_collector) in jent_kcapi_cleanup()
133 jent_entropy_collector_free(rng->entropy_collector); in jent_kcapi_cleanup()
134 rng->entropy_collector = NULL; in jent_kcapi_cleanup()
153 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
Djitterentropy.h17 extern void jent_entropy_collector_free(struct rand_data *entropy_collector);