Lines Matching defs:entropy
8 * This random number generator is used to provide additional entropy to the
63 static unsigned int entropy = 0;
138 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) {
140 * No need to add more entropy at this point, so save CPU and
145 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u",
146 count, entropy);
155 entropy++;
172 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u",
173 (unsigned int) len, entropy);
180 /* Mix in additional entropy extracted from the internal pool */
195 /* Mix in additional entropy from the crypto module */
202 wpa_printf(MSG_ERROR, "random: No entropy available "
217 if (entropy < len)
218 entropy = 0;
220 entropy -= len;
237 * Make sure that there is reasonable entropy available before allowing
306 "based on internal entropy");
310 wpa_printf(MSG_INFO, "random: Not enough entropy pool available for "
324 wpa_printf(MSG_DEBUG, "random: Mark internal entropy pool to be "
385 return; /* entropy file not yet available */
388 wpa_printf(MSG_DEBUG, "random: Invalid entropy file %s",
397 wpa_printf(MSG_DEBUG, "random: Added entropy from %s "
418 wpa_printf(MSG_ERROR, "random: Could not open entropy file %s "
429 wpa_printf(MSG_ERROR, "random: Could not write entropy data "
434 wpa_printf(MSG_DEBUG, "random: Updated entropy file %s "
472 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from "