Home
last modified time | relevance | path

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

/haiku/src/libs/bsd/
H A Darc4random.c47 #define KEYSZ 32 macro
142 if (n < KEYSZ + IVSZ) in _rs_init()
150 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0); in _rs_init()
151 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); in _rs_init()
157 u_char rnd[KEYSZ + IVSZ]; in _rs_stir()
200 m = minimum(datlen, KEYSZ + IVSZ); in _rs_rekey()
205 _rs_init(rsx->rs_buf, KEYSZ + IVSZ); in _rs_rekey()
206 memset(rsx->rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey()
207 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()