Lines Matching refs:buf
98 } buf; member
132 char *buf = buffer, *buflim = buf + bufsize; in get_nonce() local
133 while (buf < buflim) in get_nonce()
140 size_t max_bytes = MIN (buflim - buf, MAX_GETRANDOM); in get_nonce()
141 ssize_t nbytes = getrandom (buf, max_bytes, 0); in get_nonce()
143 buf += nbytes; in get_nonce()
189 setvbuf (source, s->buf.c, _IOFBF, MIN (sizeof s->buf.c, bytes_bound)); in randread_new()
192 s->buf.isaac.buffered = 0; in randread_new()
193 if (! get_nonce (s->buf.isaac.state.m, in randread_new()
194 MIN (sizeof s->buf.isaac.state.m, bytes_bound))) in randread_new()
201 isaac_seed (&s->buf.isaac.state); in randread_new()
301 randread (struct randread_source *s, void *buf, size_t size) in randread() argument
304 readsource (s, buf, size); in randread()
306 readisaac (&s->buf.isaac, buf, size); in randread()