Searched refs:rsx (Results 1 – 2 of 2) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/crypt/ |
D | arc4random.c | 62 } *rsx; variable 77 if (_rs_allocate(&rs, &rsx) == -1) in _rs_init() 81 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0); in _rs_init() 82 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); in _rs_init() 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() [all …]
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 66 struct _rsx rsx; in _rs_allocate() member 76 *rsxp = &p->rsx; in _rs_allocate()
|