Home
last modified time | relevance | path

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

/linux/crypto/
H A Djitterentropy.c600 * -1 entropy_collector is NULL or the generation failed
661 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local
663 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 in jent_entropy_collector_alloc()
700 jent_entropy_collector_free(struct rand_data * entropy_collector) jent_entropy_collector_free() argument
[all...]
H A Djitterentropy-kcapi.c196 struct rand_data *entropy_collector; member
217 if (rng->entropy_collector) in jent_kcapi_cleanup()
218 jent_entropy_collector_free(rng->entropy_collector); in jent_kcapi_cleanup()
219 rng->entropy_collector = NULL; in jent_kcapi_cleanup()
259 rng->entropy_collector = in jent_kcapi_init()
262 if (!rng->entropy_collector) { in jent_kcapi_init()
284 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
H A Djitterentropy.h22 extern void jent_entropy_collector_free(struct rand_data *entropy_collector);