Searched refs:rs_buf (Results 1 – 1 of 1) sorted by relevance
/external/openssh/openbsd-compat/ |
D | arc4random.c | 65 static u_char rs_buf[RSBUFSZ]; /* keystream blocks */ variable 128 memset(rs_buf, 0, RSBUFSZ); in _rs_stir() 149 memset(rs_buf, 0,RSBUFSZ); in _rs_rekey() 152 chacha_encrypt_bytes(&rs, rs_buf, rs_buf, RSBUFSZ); in _rs_rekey() 159 rs_buf[i] ^= dat[i]; in _rs_rekey() 162 _rs_init(rs_buf, KEYSZ + IVSZ); in _rs_rekey() 163 memset(rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey() 177 memcpy(buf, rs_buf + RSBUFSZ - rs_have, m); in _rs_random_buf() 178 memset(rs_buf + RSBUFSZ - rs_have, 0, m); in _rs_random_buf() 194 memcpy(val, rs_buf + RSBUFSZ - rs_have, sizeof(*val)); in _rs_random_u32() [all …]
|