Lines Matching refs:size
233 readsource (struct randread_source *s, unsigned char *p, size_t size) in readsource() argument
237 size_t inbytes = fread (p, sizeof *p, size, s->source); in readsource()
240 size -= inbytes; in readsource()
241 if (size == 0) in readsource()
253 readisaac (struct isaac *isaac, void *p, size_t size) in readisaac() argument
261 if (size <= inbytes) in readisaac()
263 memcpy (p, isaac->data.b + ISAAC_BYTES - inbytes, size); in readisaac()
264 isaac->buffered = inbytes - size; in readisaac()
270 size -= inbytes; in readisaac()
277 while (ISAAC_BYTES <= size) in readisaac()
281 size -= ISAAC_BYTES; in readisaac()
282 if (size == 0) in readisaac()
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()