Home
last modified time | relevance | path

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

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Darc4random.c48 #define KEYSZ 32 macro
82 if (n < KEYSZ + IVSZ) in _rs_init()
90 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8); in _rs_init()
91 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); in _rs_init()
97 uint8_t rnd[KEYSZ + IVSZ]; in _rs_stir()
100 memset(rnd, 0, (KEYSZ + IVSZ) * sizeof(u_char)); in _rs_stir()
146 m = minimum(datlen, KEYSZ + IVSZ); in _rs_rekey()
151 _rs_init(rsx->rs_buf, KEYSZ + IVSZ); in _rs_rekey()
152 memset(rsx->rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey()
153 rs->rs_have = sizeof(rsx->rs_buf) - KEYSZ - IVSZ; in _rs_rekey()