Lines Matching refs:HASHSIZE

67 #define	HASHSIZE		20  macro
96 static uint8_t leftover[HASHSIZE]; /* leftover output */
99 static uint32_t previous_bytes[HASHSIZE/BYTES_IN_WORD]; /* prev random bytes */
241 (void) swrand_get_entropy((uint8_t *)swrand_XKEY, HASHSIZE, B_TRUE); in _init()
242 bcopy(swrand_XKEY, previous_bytes, HASHSIZE); in _init()
321 uint8_t digest[HASHSIZE], *pool; in swrand_get_entropy()
322 uint32_t tempout[HASHSIZE/BYTES_IN_WORD]; in swrand_get_entropy()
362 bytes = min(HASHSIZE, len); in swrand_get_entropy()
378 for (i = 0; i < HASHSIZE; i++) { in swrand_get_entropy()
387 if (len >= HASHSIZE) { in swrand_get_entropy()
388 size = HASHSIZE; in swrand_get_entropy()
390 size = min(bytes, HASHSIZE); in swrand_get_entropy()
399 for (i = 0; i < HASHSIZE/BYTES_IN_WORD; i++) { in swrand_get_entropy()
404 if (i == HASHSIZE/BYTES_IN_WORD) { in swrand_get_entropy()
411 bcopy(tempout, previous_bytes, HASHSIZE); in swrand_get_entropy()
414 if (len < HASHSIZE) { in swrand_get_entropy()
415 leftover_bytes = HASHSIZE - bytes; in swrand_get_entropy()
426 bzero(digest, HASHSIZE); in swrand_get_entropy()
427 bzero(tempout, HASHSIZE); in swrand_get_entropy()
473 uint8_t digest[HASHSIZE]; in swrand_mix_pool()
502 for (i = 0; i < RNDPOOLSIZE/HASHSIZE + 1; i++) { in swrand_mix_pool()
517 k = (start + HASHSIZE) & (RNDPOOLSIZE - 1); in swrand_mix_pool()
518 for (j = 0; j < HASHSIZE; j++) { in swrand_mix_pool()
524 start = (start + HASHSIZE) & (RNDPOOLSIZE - 1); in swrand_mix_pool()
664 uint8_t digest[HASHSIZE]; in physmem_ent_gen()
809 swrand_add_bytes(digest, HASHSIZE); in physmem_ent_gen()