Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c64 } *rsx; variable
79 if (_rs_allocate(&rs, &rsx) == -1) in _rs_init()
83 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8); in _rs_init()
84 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); in _rs_init()
104 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_stir()
107 chacha_encrypt_bytes(&rsx->rs_chacha, (uint8_t *)&rekey_fuzz, in _rs_stir()
128 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_rekey()
131 chacha_encrypt_bytes(&rsx->rs_chacha, rsx->rs_buf, in _rs_rekey()
132 rsx->rs_buf, sizeof(rsx->rs_buf)); in _rs_rekey()
139 rsx->rs_buf[i] ^= dat[i]; in _rs_rekey()
[all …]
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h66 struct _rsx rsx; in _rs_allocate() member
76 *rsxp = &p->rsx; in _rs_allocate()