Searched refs:rs_buf (Results 1 – 1 of 1) sorted by relevance
/picolibc-3.5.0-3.4.0/newlib/libc/stdlib/ |
D | arc4random.c | 70 unsigned char rs_buf[RSBUFSZ]; /* keystream blocks */ member 113 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); 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() 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() 167 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) in _rs_random_buf() [all …]
|