Searched refs:entropy_collector (Results 1 – 2 of 2) sorted by relevance
478 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local480 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()481 if (!entropy_collector) in jent_entropy_collector_alloc()488 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()489 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()490 jent_zfree(entropy_collector); in jent_entropy_collector_alloc()493 entropy_collector->memblocksize = JENT_MEMORY_BLOCKSIZE; in jent_entropy_collector_alloc()494 entropy_collector->memblocks = JENT_MEMORY_BLOCKS; in jent_entropy_collector_alloc()495 entropy_collector->memaccessloops = JENT_MEMORY_ACCESSLOOPS; in jent_entropy_collector_alloc()501 entropy_collector->osr = osr; in jent_entropy_collector_alloc()[all …]
53 void jent_entropy_collector_free(struct rand_data *entropy_collector);116 struct rand_data *entropy_collector; member124 rng->entropy_collector = jent_entropy_collector_alloc(1, 0); in jent_kcapi_init()125 if (!rng->entropy_collector) in jent_kcapi_init()137 if (rng->entropy_collector) in jent_kcapi_cleanup()138 jent_entropy_collector_free(rng->entropy_collector); in jent_kcapi_cleanup()139 rng->entropy_collector = NULL; in jent_kcapi_cleanup()151 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()