Searched refs:rs_buf (Results 1 - 2 of 2) sorted by relevance

/openbsd-current/lib/libc/crypt/
H A Darc4random.c56 size_t rs_have; /* valid bytes at end of rs_buf */
63 u_char rs_buf[RSBUFSZ]; /* keystream blocks */ member in struct:_rsx
102 /* invalidate rs_buf */
104 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
128 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
130 /* fill rs_buf with the keystream */
131 chacha_encrypt_bytes(&rsx->rs_chacha, rsx->rs_buf,
132 rsx->rs_buf, sizeo
[all...]
/openbsd-current/sys/dev/
H A Drnd.c327 static u_char rs_buf[RSBUFSZ]; variable
329 static size_t rs_have; /* valid bytes at end of rs_buf */
376 /* invalidate rs_buf */
378 memset(rs_buf, 0, sizeof(rs_buf));
420 memcpy(rs_buf, rs_buf0, sizeof(rs_buf));
422 _rs_init(rs_buf, KEYSZ + IVSZ);
471 memset(rs_buf, 0, sizeof(rs_buf));
[all...]

Completed in 85 milliseconds