Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Darc4random.c66 static size_t rs_have; /* valid bytes at end of rs_buf */ variable
127 rs_have = 0; in _rs_stir()
164 rs_have = RSBUFSZ - KEYSZ - IVSZ; in _rs_rekey()
175 if (rs_have > 0) { in _rs_random_buf()
176 m = MIN(n, rs_have); in _rs_random_buf()
177 memcpy(buf, rs_buf + RSBUFSZ - rs_have, m); in _rs_random_buf()
178 memset(rs_buf + RSBUFSZ - rs_have, 0, m); in _rs_random_buf()
181 rs_have -= m; in _rs_random_buf()
183 if (rs_have == 0) in _rs_random_buf()
192 if (rs_have < sizeof(*val)) in _rs_random_u32()
[all …]