Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c61 u_char rs_buf[RSBUFSZ]; /* keystream blocks */ member
101 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_stir()
122 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_rekey()
125 chacha_encrypt_bytes(&rsx->rs_chacha, rsx->rs_buf, in _rs_rekey()
126 rsx->rs_buf, sizeof(rsx->rs_buf)); in _rs_rekey()
133 rsx->rs_buf[i] ^= dat[i]; in _rs_rekey()
136 _rs_init(rsx->rs_buf, KEYSZ + IVSZ); in _rs_rekey()
137 memset(rsx->rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey()
138 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()
152 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) in _rs_random_buf()
[all …]