Lines Matching refs:entropy_collector
678 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local
680 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()
681 if (!entropy_collector) in jent_entropy_collector_alloc()
688 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()
689 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()
690 jent_zfree(entropy_collector); in jent_entropy_collector_alloc()
693 entropy_collector->memblocksize = JENT_MEMORY_BLOCKSIZE; in jent_entropy_collector_alloc()
694 entropy_collector->memblocks = JENT_MEMORY_BLOCKS; in jent_entropy_collector_alloc()
695 entropy_collector->memaccessloops = JENT_MEMORY_ACCESSLOOPS; in jent_entropy_collector_alloc()
701 entropy_collector->osr = osr; in jent_entropy_collector_alloc()
704 jent_gen_entropy(entropy_collector); in jent_entropy_collector_alloc()
706 return entropy_collector; in jent_entropy_collector_alloc()
709 void jent_entropy_collector_free(struct rand_data *entropy_collector) in jent_entropy_collector_free() argument
711 jent_zfree(entropy_collector->mem); in jent_entropy_collector_free()
712 entropy_collector->mem = NULL; in jent_entropy_collector_free()
713 jent_zfree(entropy_collector); in jent_entropy_collector_free()