Home | History | Annotate | Download | only in crypto

Lines Matching refs:entropy

8  * This random number generator is used to provide additional entropy to the
60 static unsigned int entropy = 0;
135 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) {
137 * No need to add more entropy at this point, so save CPU and
142 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u",
143 count, entropy);
152 entropy++;
163 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u",
164 (unsigned int) len, entropy);
171 /* Mix in additional entropy extracted from the internal pool */
186 /* Mix in additional entropy from the crypto module */
193 wpa_printf(MSG_ERROR, "random: No entropy available "
208 if (entropy < len)
209 entropy = 0;
211 entropy -= len;
224 * 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 "
424 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from "