Home
last modified time | relevance | path

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

/linux-4.4.14/crypto/
Djitterentropy.c389 static __u64 jent_unbiased_bit(struct rand_data *entropy_collector) in jent_unbiased_bit() argument
392 __u64 a = jent_measure_jitter(entropy_collector); in jent_unbiased_bit()
393 __u64 b = jent_measure_jitter(entropy_collector); in jent_unbiased_bit()
421 static void jent_stir_pool(struct rand_data *entropy_collector) in jent_stir_pool() argument
461 if ((entropy_collector->data >> i) & 1) in jent_stir_pool()
465 entropy_collector->data ^= mixer.u64; in jent_stir_pool()
617 struct rand_data *entropy_collector; in jent_entropy_collector_alloc() local
619 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()
620 if (!entropy_collector) in jent_entropy_collector_alloc()
627 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()
[all …]
Djitterentropy-kcapi.c54 void jent_entropy_collector_free(struct rand_data *entropy_collector);
118 struct rand_data *entropy_collector; member
126 rng->entropy_collector = jent_entropy_collector_alloc(1, 0); in jent_kcapi_init()
127 if (!rng->entropy_collector) in jent_kcapi_init()
139 if (rng->entropy_collector) in jent_kcapi_cleanup()
140 jent_entropy_collector_free(rng->entropy_collector); in jent_kcapi_cleanup()
141 rng->entropy_collector = NULL; in jent_kcapi_cleanup()
153 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()