Searched refs:RANDOM_BLOCKSIZE (Results 1 - 7 of 7) sorted by relevance

/freebsd-11-stable/sys/dev/random/
H A Dhash.h35 #define RANDOM_BLOCKSIZE 16 /* (in bytes) == 128 bits */ macro
36 #define RANDOM_BLOCKSIZE_WORDS (RANDOM_BLOCKSIZE/sizeof(uint32_t))
37 #define RANDOM_KEYS_PER_BLOCK (RANDOM_KEYSIZE/RANDOM_BLOCKSIZE)
H A Dyarrow.c77 /* This algorithm (and code) presumes that RANDOM_KEYSIZE is twice as large as RANDOM_BLOCKSIZE */
78 CTASSERT(RANDOM_BLOCKSIZE == sizeof(uint128_t));
79 CTASSERT(RANDOM_KEYSIZE == 2*RANDOM_BLOCKSIZE);
111 RANDOM_CHECK_UINT(fastthresh, (RANDOM_BLOCKSIZE*8)/4, (RANDOM_BLOCKSIZE*8)); /* Bit counts */
112 RANDOM_CHECK_UINT(slowthresh, (RANDOM_BLOCKSIZE*8)/4, (RANDOM_BLOCKSIZE*8)); /* Bit counts */
190 yarrow_state.ys_pool[RANDOM_YARROW_FAST].ysp_thresh = (3*(RANDOM_BLOCKSIZE*8))/4;
191 yarrow_state.ys_pool[RANDOM_YARROW_SLOW].ysp_thresh = (RANDOM_BLOCKSIZE*8);
310 randomdev_encrypt(&yarrow_state.ys_key, &yarrow_state.ys_counter, &temp, RANDOM_BLOCKSIZE);
[all...]
H A Dunit_test.h66 #define RANDOM_BLOCKSIZE 16 macro
H A Dfortuna.c94 /* This algorithm (and code) presumes that RANDOM_KEYSIZE is twice as large as RANDOM_BLOCKSIZE */
95 CTASSERT(RANDOM_BLOCKSIZE == sizeof(uint128_t));
96 CTASSERT(RANDOM_KEYSIZE == 2*RANDOM_BLOCKSIZE);
301 randomdev_encrypt(&fortuna_state.fs_key, &fortuna_state.fs_counter, buf, RANDOM_BLOCKSIZE);
302 buf += RANDOM_BLOCKSIZE;
317 static uint8_t temp[RANDOM_BLOCKSIZE*(RANDOM_KEYS_PER_BLOCK)];
327 blockcount = howmany(bytecount, RANDOM_BLOCKSIZE);
403 * The supplied buf MUST be a multiple of RANDOM_BLOCKSIZE in size.
411 KASSERT((bytecount % RANDOM_BLOCKSIZE) == 0, ("%s(): bytecount (= %d) must be a multiple of %d", __func__, bytecount, RANDOM_BLOCKSIZE ));
[all...]
H A Dhash.c50 /* This code presumes that RANDOM_KEYSIZE is twice as large as RANDOM_BLOCKSIZE */
51 CTASSERT(RANDOM_KEYSIZE == 2*RANDOM_BLOCKSIZE);
93 * a multiple of RANDOM_BLOCKSIZE.
H A Dunit_test.c196 buffersize = i + RANDOM_BLOCKSIZE;
197 buffersize -= buffersize%RANDOM_BLOCKSIZE;
H A Drandomdev.c168 read_len = roundup(read_len, RANDOM_BLOCKSIZE);
189 * RANDOM_BLOCKSIZE bytes.
195 uint8_t local_buf[len + RANDOM_BLOCKSIZE];
208 read_len = roundup(len, RANDOM_BLOCKSIZE);

Completed in 83 milliseconds