Home
last modified time | relevance | path

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

/linux-6.12.1/crypto/
Dansi_cprng.c46 u32 rand_data_valid; member
170 ctx->rand_data_valid = 0; in _get_more_prng_bytes()
217 if (ctx->rand_data_valid == DEFAULT_BLK_SZ) { in get_prng_bytes()
230 while (ctx->rand_data_valid < DEFAULT_BLK_SZ) { in get_prng_bytes()
231 *ptr = ctx->rand_data[ctx->rand_data_valid]; in get_prng_bytes()
234 ctx->rand_data_valid++; in get_prng_bytes()
244 if (ctx->rand_data_valid == DEFAULT_BLK_SZ) { in get_prng_bytes()
251 if (ctx->rand_data_valid > 0) in get_prng_bytes()
254 ctx->rand_data_valid += DEFAULT_BLK_SZ; in get_prng_bytes()
304 ctx->rand_data_valid = DEFAULT_BLK_SZ; in reset_prng_context()
[all …]