Lines Matching defs:RNDPOOLSIZE
59 #define RNDPOOLSIZE 1024 /* Pool size in bytes */
84 static uint32_t srndpool[RNDPOOLSIZE/4]; /* Pool of random bits */
85 static uint32_t buffer[RNDPOOLSIZE/4]; /* entropy mixed in later */
370 HashUpdate(&hashctx, (uint8_t *)srndpool, RNDPOOLSIZE);
380 /* pindex modulo RNDPOOLSIZE */
381 pindex &= (RNDPOOLSIZE - 1);
438 (i) &= (RNDPOOLSIZE - 1); \
482 if (buffer_bytes >= RNDPOOLSIZE) {
483 for (i = 0; i < RNDPOOLSIZE/4; i++) {
492 pindex &= (RNDPOOLSIZE - 1);
493 bstart &= (RNDPOOLSIZE - 1);
502 for (i = 0; i < RNDPOOLSIZE/HASHSIZE + 1; i++) {
506 if (start + HASHBUFSIZE <= RNDPOOLSIZE)
510 RNDPOOLSIZE - start);
512 HASHBUFSIZE - RNDPOOLSIZE + start);
517 k = (start + HASHSIZE) & (RNDPOOLSIZE - 1);
520 k &= (RNDPOOLSIZE - 1);
524 start = (start + HASHSIZE) & (RNDPOOLSIZE - 1);
528 if (entropy_bits > CRYPTO_BYTES2BITS(RNDPOOLSIZE))
529 entropy_bits = CRYPTO_BYTES2BITS(RNDPOOLSIZE);
623 if (i > RNDPOOLSIZE) {
624 bcopy(srndpool, ptr, RNDPOOLSIZE);
628 ptr += RNDPOOLSIZE;
629 i -= RNDPOOLSIZE;
672 for (i = 0; i < RNDPOOLSIZE/4; i++) {
675 if (entropy_bits + ent >= CRYPTO_BYTES2BITS(RNDPOOLSIZE)) {