Lines Matching full:entropy
8 * This random number generator is used to provide additional entropy to the
62 static unsigned int entropy = 0; variable
137 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { in random_add_randomness()
139 * No need to add more entropy at this point, so save CPU and in random_add_randomness()
144 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u", in random_add_randomness()
145 count, entropy); in random_add_randomness()
154 entropy++; in random_add_randomness()
165 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", in random_get_bytes()
166 (unsigned int) len, entropy); in random_get_bytes()
173 /* Mix in additional entropy extracted from the internal pool */ in random_get_bytes()
188 /* Mix in additional entropy from the crypto module */ in random_get_bytes()
195 wpa_printf(MSG_ERROR, "random: No entropy available " in random_get_bytes()
210 if (entropy < len) in random_get_bytes()
211 entropy = 0; in random_get_bytes()
213 entropy -= len; in random_get_bytes()
226 * Make sure that there is reasonable entropy available before allowing in random_pool_ready()
295 "based on internal entropy"); in random_pool_ready()
299 wpa_printf(MSG_INFO, "random: Not enough entropy pool available for " in random_pool_ready()
312 wpa_printf(MSG_DEBUG, "random: Mark internal entropy pool to be " in random_mark_pool_ready()
373 return; /* entropy file not yet available */ in random_read_entropy()
376 wpa_printf(MSG_DEBUG, "random: Invalid entropy file %s", in random_read_entropy()
385 wpa_printf(MSG_DEBUG, "random: Added entropy from %s " in random_read_entropy()
406 wpa_printf(MSG_ERROR, "random: Could not open entropy file %s " in random_write_entropy()
417 wpa_printf(MSG_ERROR, "random: Could not write entropy data " in random_write_entropy()
422 wpa_printf(MSG_DEBUG, "random: Updated entropy file %s " in random_write_entropy()
460 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from " in random_init()