Home
last modified time | relevance | path

Searched refs:FXRNG_HASH_SZ (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/dev/random/fenestrasX/
H A Dfx_hash.h35 #define FXRNG_HASH_SZ BLAKE2B_OUTBYTES /* 64 */ macro
49 rc = blake2b_init(&h->state, FXRNG_HASH_SZ); in fxrng_hash_init()
63 fxrng_hash_finish(struct fxrng_hash *h, uint8_t buf[static FXRNG_HASH_SZ], size_t sz) in fxrng_hash_finish() argument
H A Dfx_pool.c449 uint8_t hash[FXRNG_HASH_SZ]; in fxrng_alg_seeded()
501 uint8_t hash[FXRNG_HASH_SZ * FXRNG_NPOOLS]; in fxent_timer_reseed_npools()
515 fxrng_hash_finish(&fxent_pool[i], hash + i * FXRNG_HASH_SZ, in fxent_timer_reseed_npools()
516 FXRNG_HASH_SZ); in fxent_timer_reseed_npools()
520 fxrng_brng_reseed(hash, n * FXRNG_HASH_SZ); in fxent_timer_reseed_npools()
521 explicit_bzero(hash, n * FXRNG_HASH_SZ); in fxent_timer_reseed_npools()
H A Dfx_rng.c174 uint8_t hash_out[FXRNG_HASH_SZ]; in fxrng_rng_reseed_internal()
179 _Static_assert(FX_CHACHA20_KEYSIZE <= FXRNG_HASH_SZ, ""); in fxrng_rng_reseed_internal()