Lines Matching refs:entropy
8 * This random number generator is used to provide additional entropy to the
60 static unsigned int entropy = 0;
132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) {
134 * No need to add more entropy at this point, so save CPU and
139 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u",
140 count, entropy);
149 entropy++;
160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u",
161 (unsigned int) len, entropy);
168 /* Mix in additional entropy extracted from the internal pool */
183 /* Mix in additional entropy from the crypto module */
189 wpa_printf(MSG_ERROR, "random: No entropy available "
204 if (entropy < len)
205 entropy = 0;
207 entropy -= len;
220 * Make sure that there is reasonable entropy available before allowing
271 "based on internal entropy");
275 wpa_printf(MSG_INFO, "random: Not enough entropy pool available for "
288 wpa_printf(MSG_DEBUG, "random: Mark internal entropy pool to be "
349 return; /* entropy file not yet available */
352 wpa_printf(MSG_DEBUG, "random: Invalid entropy file %s",
362 wpa_printf(MSG_DEBUG, "random: Added entropy from %s "
383 wpa_printf(MSG_ERROR, "random: Could not open entropy file %s "
394 wpa_printf(MSG_ERROR, "random: Could not write entropy data "
399 wpa_printf(MSG_DEBUG, "random: Updated entropy file %s "
428 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from "