Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Darc4random.c61 #define RSBUFSZ (16*BLOCKSZ) macro
65 static u_char rs_buf[RSBUFSZ]; /* keystream blocks */
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()
164 rs_have = RSBUFSZ - 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()
195 memset(rs_buf + RSBUFSZ - rs_have, 0, sizeof(*val)); in _rs_random_u32()