Home
last modified time | relevance | path

Searched refs:rs_have (Results 1 – 1 of 1) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Darc4random.c63 size_t rs_have; /* valid bytes at end of rs_buf */ member
112 rs->rs_have = 0; in _rs_stir()
153 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()
165 if (rs->rs_have > 0) { in _rs_random_buf()
166 m = minimum(n, rs->rs_have); in _rs_random_buf()
168 - rs->rs_have; in _rs_random_buf()
173 rs->rs_have -= m; in _rs_random_buf()
175 if (rs->rs_have == 0) in _rs_random_buf()
186 if (rs->rs_have < sizeof(*val)) in _rs_random_u32()
188 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) - rs->rs_have; in _rs_random_u32()
[all …]