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