Lines Matching refs:entropy
235 uint32_t entropy[HARVESTSIZE]; in random_sources_feed() local
275 RANDOM_FORTUNA_DEFPOOLSIZE, sizeof(entropy)); in random_sources_feed()
285 n = rrs->rrs_source->rs_read(entropy, sizeof(entropy)); in random_sources_feed()
286 …KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%u > %zu)", __func__, n, siz… in random_sources_feed()
300 random_harvest_direct(entropy, n, rrs->rrs_source->rs_source); in random_sources_feed()
305 explicit_bzero(entropy, sizeof(entropy)); in random_sources_feed()
446 random_early_prime(char *entropy, size_t len) in random_early_prime() argument
461 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime()
464 explicit_bzero(entropy, len); in random_early_prime()
552 random_harvest_queue_(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_queue_() argument
568 memcpy(event->he_entropy, entropy, size); in random_harvest_queue_()
573 event->he_entropy[0] = jenkins_hash(entropy, size, (uint32_t)(uintptr_t)event); in random_harvest_queue_()
587 random_harvest_fast_(const void *entropy, u_int size) in random_harvest_fast_() argument
592 …harvest_context.hc_entropy_fast_accumulator.buf[pos] ^= jenkins_hash(entropy, size, (uint32_t)get_… in random_harvest_fast_()
603 random_harvest_direct_(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_direct_() argument
613 memcpy(event.he_entropy, entropy, size); in random_harvest_direct_()