Lines Matching defs:entropy
14 * This random number generator is used to provide additional entropy to the
65 static unsigned int entropy = 0;
137 wpa_printf(MSG_MSGDUMP, "Add randomness: count=%u entropy=%u",
138 count, entropy);
139 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) {
141 * No need to add more entropy at this point, so save CPU and
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 if (entropy < len)
189 entropy = 0;
191 entropy -= len;
204 * Make sure that there is reasonable entropy available before allowing
255 "based on internal entropy");
259 wpa_printf(MSG_INFO, "random: Not enough entropy pool available for "
272 wpa_printf(MSG_DEBUG, "random: Mark internal entropy pool to be "
333 return; /* entropy file not yet available */
336 wpa_printf(MSG_DEBUG, "random: Invalid entropy file %s",
346 wpa_printf(MSG_DEBUG, "random: Added entropy from %s "
375 wpa_printf(MSG_DEBUG, "random: Updated entropy file %s "
404 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from "