Home
last modified time | relevance | path

Searched refs:RNDPOOLSIZE (Results 1 – 2 of 2) sorted by relevance

/titanic_44/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); in swrand_get_entropy()
381 pindex &= (RNDPOOLSIZE - 1); in swrand_get_entropy()
438 (i) &= (RNDPOOLSIZE - 1); \
482 if (buffer_bytes >= RNDPOOLSIZE) { in swrand_mix_pool()
483 for (i = 0; i < RNDPOOLSIZE/4; i++) { in swrand_mix_pool()
492 pindex &= (RNDPOOLSIZE - 1); in swrand_mix_pool()
493 bstart &= (RNDPOOLSIZE - 1); in swrand_mix_pool()
[all …]
/titanic_44/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); in rnd_get_bytes()
947 else if (rnbyte_cnt < RNDPOOLSIZE) in rnd_handler()
1000 ASSERT(rnbyte_cnt <= RNDPOOLSIZE); in rndc_addbytes()
1003 while ((len > 0) && (rnbyte_cnt < RNDPOOLSIZE)) { in rndc_addbytes()
1006 rindex = (rindex + 1) & (RNDPOOLSIZE - 1); in rndc_addbytes()
1014 findex = rindex = (rindex + 1) & (RNDPOOLSIZE - 1); in rndc_addbytes()
1027 ASSERT(len <= rnbyte_cnt && rnbyte_cnt <= RNDPOOLSIZE); in rndc_getbytes()
1034 findex = (findex + 1) & (RNDPOOLSIZE - 1); in rndc_getbytes()