Searched defs:RNDPOOLSIZE (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/crypto/io/
H A Dswrand.c59 #define RNDPOOLSIZE 1024 /* Pool size in bytes */ macro
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
[all...]
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_random.c74 #define RNDPOOLSIZE 1024 /* Pool size in bytes */ macro
105 uint8_t rndpool[RNDPOOLSIZE];
546 (RNDPOOLSIZE - 1);
947 else if (rnbyte_cnt < RNDPOOLSIZE)
1000 ASSERT(rnbyte_cnt <= RNDPOOLSIZE);
1003 while ((len > 0) && (rnbyte_cnt < RNDPOOLSIZE)) {
1006 rindex = (rindex + 1) & (RNDPOOLSIZE - 1);
1014 findex = rindex = (rindex + 1) & (RNDPOOLSIZE - 1);
1027 ASSERT(len <= rnbyte_cnt && rnbyte_cnt <= RNDPOOLSIZE);
1034 findex = (findex + 1) & (RNDPOOLSIZE
[all...]

Completed in 61 milliseconds