Lines Matching defs:len
79 static void random_mix_pool(const void *buf, size_t len)
88 wpa_hexdump_key(MSG_EXCESSIVE, "random_mix_pool", buf, len);
90 while (len--) {
132 void random_add_randomness(const void *buf, size_t len)
152 random_mix_pool(buf, len);
160 int random_get_bytes(void *buf, size_t len)
164 for (size_t i = 0; i < len; i++) {
172 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u",
173 (unsigned int) len, entropy);
176 ret = os_get_random(buf, len);
178 buf, len);
181 left = len;
197 left = len;
215 wpa_hexdump_key(MSG_EXCESSIVE, "mixed random", buf, len);
217 if (entropy < len)
220 entropy -= len;
378 size_t len;
383 buf = os_readfile(random_entropy_file, &len);
387 if (len != 1 + RANDOM_ENTROPY_SIZE) {