cpu_rng.c | 193 * VIA PPG says EAX[4:0] is nbytes, but the only documented numbers of 204 uint32_t cr0, status, nbytes; local in function:cpu_rng_via 231 nbytes = __SHIFTOUT(status, VIA_RNG_STATUS_NBYTES); 243 return nbytes * NBBY/2; 267 cpu_rng_get(size_t nbytes, void *cookie) 271 NBYTES = howmany(NBITS, 8), 277 while (nbytes) { 286 if (consttime_memequal(buf, buf + NWORDS, NBYTES)) { 292 nbytes -= MIN(MIN(nbytes, sizeof buf), MAX(1, 8*nbits)) [all...] |