Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c56 size_t rs_have; /* valid bytes at end of rs_buf */ member
103 rs->rs_have = 0; in _rs_stir()
144 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()
156 if (rs->rs_have > 0) { in _rs_random_buf()
157 m = minimum(n, rs->rs_have); in _rs_random_buf()
159 - rs->rs_have; in _rs_random_buf()
164 rs->rs_have -= m; in _rs_random_buf()
166 if (rs->rs_have == 0) in _rs_random_buf()
177 if (rs->rs_have < sizeof(*val)) in _rs_random_u32()
179 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) - rs->rs_have; in _rs_random_u32()
[all …]