Home
last modified time | relevance | path

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

/third_party/FreeBSD/lib/libc/gen/
Darc4random.c83 u_char rs_buf[RSBUFSZ]; /* keystream blocks */ member
159 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_stir()
183 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_rekey()
186 chacha_encrypt_bytes(&rsx->rs_chacha, rsx->rs_buf, in _rs_rekey()
187 rsx->rs_buf, sizeof(rsx->rs_buf)); in _rs_rekey()
194 rsx->rs_buf[i] ^= dat[i]; in _rs_rekey()
197 _rs_init(rsx->rs_buf, KEYSZ + IVSZ); in _rs_rekey()
198 memset(rsx->rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey()
199 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()
213 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) in _rs_random_buf()
[all …]