Home
last modified time | relevance | path

Searched refs:he_entropy (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/dev/random/
H A Drandom_harvestq.c451 len = rounddown(len, sizeof(event.he_entropy)); in random_early_prime()
455 for (i = 0; i < len; i += sizeof(event.he_entropy)) { in random_early_prime()
457 event.he_size = sizeof(event.he_entropy); in random_early_prime()
461 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime()
566 if (size <= sizeof(event->he_entropy)) { in random_harvest_queue_()
568 memcpy(event->he_entropy, entropy, size); in random_harvest_queue_()
572 event->he_size = sizeof(event->he_entropy[0]); in random_harvest_queue_()
573 event->he_entropy[0] = jenkins_hash(entropy, size, (uint32_t)(uintptr_t)event); in random_harvest_queue_()
608 size = MIN(size, sizeof(event.he_entropy)); in random_harvest_direct_()
613 memcpy(event.he_entropy, entropy, size); in random_harvest_direct_()
H A Drandomdev.c312 for (i = 0; i < RANDOM_KEYSIZE_WORDS; i += sizeof(event.he_entropy)/sizeof(event.he_entropy[0])) { in randomdev_accumulate()
314 event.he_size = sizeof(event.he_entropy); in randomdev_accumulate()
317 memcpy(event.he_entropy, entropy_data + i, sizeof(event.he_entropy)); in randomdev_accumulate()
H A Dfortuna.c370 KASSERT(event->he_size <= sizeof(event->he_entropy), in random_fortuna_process_event()
372 __func__, event->he_size, sizeof(event->he_entropy))); in random_fortuna_process_event()
376 event->he_entropy, event->he_size); in random_fortuna_process_event()
H A Drandom_harvestq.h37 uint32_t he_entropy[HARVESTSIZE];/* some harvested entropy */ member
H A Dunit_test.h74 uint32_t he_entropy[HARVESTSIZE];/* some harvested entropy */ member
H A Dunit_test.c157 *((uint64_t *)e.he_entropy) = random(); in RunHarvester()
/freebsd/sys/dev/random/fenestrasX/
H A Dfx_pool.c302 ASSERT_DEBUG(event->he_size <= sizeof(event->he_entropy), in fxrng_event_processor()
304 (unsigned)event->he_size, sizeof(event->he_entropy)); in fxrng_event_processor()
354 fxrng_hash_update(&fxent_pool[0], event->he_entropy, in fxrng_event_processor()
396 ((uint8_t *)event->he_entropy) + event->he_size - rem, in fxrng_event_processor()
420 fxrng_hash_update(&fxent_pool[pool], event->he_entropy, in fxrng_event_processor()
H A Dfx_rng.c231 sizeof(event->he_somecounter), (const void *)event->he_entropy, in fxrng_rng_src_reseed()
/freebsd/sys/dev/vmgenc/
H A Dvmgenc_acpi.c88 sizeof(((struct harvest_event *)0)->he_entropy)); in vmgenc_harvest_all()
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_rng.c308 chunk_size = sizeof(((struct harvest_event *)0)->he_entropy); in bcm2835_rng_enqueue_harvest()