Home
last modified time | relevance | path

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

/picolibc-3.5.0-3.4.0/newlib/libc/stdlib/
Darc4random.c71 } *rsx; variable
86 if (_rs_allocate(&rs, &rsx) == -1) 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()
113 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_stir()
116 chacha_encrypt_bytes(&rsx->rs_chacha, (uint8_t *)&rekey_fuzz, in _rs_stir()
137 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_rekey()
140 chacha_encrypt_bytes(&rsx->rs_chacha, rsx->rs_buf, in _rs_rekey()
141 rsx->rs_buf, sizeof(rsx->rs_buf)); in _rs_rekey()
148 rsx->rs_buf[i] ^= dat[i]; in _rs_rekey()
[all …]
Darc4random.h48 struct _rsx rsx;
69 *rsxp = &_arc4random_data.rsx; in _rs_allocate()