Lines Matching refs:len
73 static void random_mix_pool(const void *buf, size_t len)
82 wpa_hexdump_key(MSG_EXCESSIVE, "random_mix_pool", buf, len);
84 while (len--) {
126 void random_add_randomness(const void *buf, size_t len)
146 random_mix_pool(buf, len);
154 int random_get_bytes(void *buf, size_t len)
160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u",
161 (unsigned int) len, entropy);
164 ret = os_get_random(buf, len);
166 buf, len);
169 left = len;
185 left = len;
203 wpa_hexdump_key(MSG_EXCESSIVE, "mixed random", buf, len);
205 if (entropy < len)
208 entropy -= len;
339 size_t len;
344 buf = os_readfile(random_entropy_file, &len);
348 if (len != 1 + RANDOM_ENTROPY_SIZE) {