Lines Matching refs:entropy_collector
478 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local
480 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()
504 jent_gen_entropy(entropy_collector); in jent_entropy_collector_alloc()
506 return entropy_collector; in jent_entropy_collector_alloc()
509 void jent_entropy_collector_free(struct rand_data *entropy_collector) in jent_entropy_collector_free() argument
511 jent_zfree(entropy_collector->mem); in jent_entropy_collector_free()
512 entropy_collector->mem = NULL; in jent_entropy_collector_free()
513 jent_zfree(entropy_collector); in jent_entropy_collector_free()