Lines Matching full:random

2  * Random number generator
8 * This random number generator is used to provide additional entropy to the
19 * drivers/char/random.c, but the implementation here is simpler and not as
29 #include <sys/random.h>
37 #include "random.h"
148 wpa_hexdump_key(MSG_EXCESSIVE, "random pool", in random_add_randomness()
152 wpa_hexdump_key(MSG_EXCESSIVE, "random pool", in random_add_randomness()
170 wpa_hexdump_key(MSG_EXCESSIVE, "random from os_get_random", in random_get_bytes()
179 wpa_hexdump_key(MSG_EXCESSIVE, "random from internal pool", in random_get_bytes()
195 wpa_printf(MSG_ERROR, "random: No entropy available " in random_get_bytes()
196 "for generating strong random bytes"); in random_get_bytes()
199 wpa_hexdump_key(MSG_EXCESSIVE, "random from crypto module", in random_get_bytes()
208 wpa_hexdump_key(MSG_EXCESSIVE, "mixed random", buf, len); in random_get_bytes()
246 "random: getrandom() not supported, falling back to /dev/random"); in random_pool_ready()
249 "random: no data from getrandom(): %s", in random_pool_ready()
258 fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_pool_ready()
261 "random: Cannot open /dev/random: %s", in random_pool_ready()
270 "random: Cannot read from /dev/random: %s", in random_pool_ready()
277 wpa_printf(MSG_DEBUG, "random: Got %u/%u random bytes", (unsigned) res, in random_pool_ready()
288 wpa_printf(MSG_INFO, "random: Only %u/%u bytes of strong " in random_pool_ready()
289 "random data available", in random_pool_ready()
294 wpa_printf(MSG_INFO, "random: Allow operation to proceed " in random_pool_ready()
299 wpa_printf(MSG_INFO, "random: Not enough entropy pool available for " in random_pool_ready()
312 wpa_printf(MSG_DEBUG, "random: Mark internal entropy pool to be " in random_mark_pool_ready()
342 wpa_printf(MSG_ERROR, "random: Cannot read from /dev/random: " in random_read_fd()
347 wpa_printf(MSG_DEBUG, "random: Got %u/%u bytes from /dev/random", in random_read_fd()
376 wpa_printf(MSG_DEBUG, "random: Invalid entropy file %s", in random_read_entropy()
385 wpa_printf(MSG_DEBUG, "random: Added entropy from %s " in random_read_entropy()
406 wpa_printf(MSG_ERROR, "random: Could not open entropy file %s " in random_write_entropy()
417 wpa_printf(MSG_ERROR, "random: Could not write entropy data " in random_write_entropy()
422 wpa_printf(MSG_DEBUG, "random: Updated entropy file %s " in random_write_entropy()
448 "random: getrandom() support available"); in random_init()
454 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
456 wpa_printf(MSG_ERROR, "random: Cannot open /dev/random: %s", in random_init()
460 wpa_printf(MSG_DEBUG, "random: Trying to read entropy from " in random_init()
461 "/dev/random"); in random_init()