Searched refs:entropy_collector (Results 1 – 3 of 3) sorted by relevance
661 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local663 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()664 if (!entropy_collector) in jent_entropy_collector_alloc()671 entropy_collector->mem = jent_kvzalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()672 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()673 jent_zfree(entropy_collector); in jent_entropy_collector_alloc()676 entropy_collector->memblocksize = in jent_entropy_collector_alloc()678 entropy_collector->memblocks = in jent_entropy_collector_alloc()680 entropy_collector->memaccessloops = JENT_MEMORY_ACCESSLOOPS; in jent_entropy_collector_alloc()686 entropy_collector->osr = osr; in jent_entropy_collector_alloc()[all …]
195 struct rand_data *entropy_collector; member216 if (rng->entropy_collector) in jent_kcapi_cleanup()217 jent_entropy_collector_free(rng->entropy_collector); in jent_kcapi_cleanup()218 rng->entropy_collector = NULL; in jent_kcapi_cleanup()258 rng->entropy_collector = in jent_kcapi_init()261 if (!rng->entropy_collector) { in jent_kcapi_init()283 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
22 extern void jent_entropy_collector_free(struct rand_data *entropy_collector);