Lines Matching full:stuck
73 __u64 last_delta; /* SENSITIVE stuck test */
74 __s64 last_delta2; /* SENSITIVE stuck test */
89 unsigned int rct_count; /* Number of stuck values */
123 #define JENT_ESTUCK 8 /* Too many stuck results during init. */
199 * Stuck Test and its use as Repetition Count Test
203 * back-to-back values, the input to the RCT is the counting of the stuck
218 * @stuck [in] Indicator whether the value is stuck
220 static void jent_rct_insert(struct rand_data *ec, int stuck) in jent_rct_insert() argument
222 if (stuck) { in jent_rct_insert()
238 * Stuck test by checking the:
249 * 0 jitter measurement not stuck (good bit)
250 * 1 jitter measurement stuck (reject bit)
267 /* RCT with a stuck bit */ in jent_stuck()
272 /* RCT with a non-stuck bit */ in jent_stuck()
349 * stuck [in] Is the time stamp identified as stuck?
354 static int jent_condition_data(struct rand_data *ec, __u64 time, int stuck) in jent_condition_data() argument
370 SHA3_HASH_LOOP, stuck); in jent_condition_data()
449 * @return result of stuck test
455 int stuck; in jent_measure_jitter() local
468 /* Check whether we have a stuck measurement. */ in jent_measure_jitter()
469 stuck = jent_stuck(ec, current_delta); in jent_measure_jitter()
472 if (jent_condition_data(ec, current_delta, stuck)) in jent_measure_jitter()
473 stuck = 1; in jent_measure_jitter()
475 return stuck; in jent_measure_jitter()
495 /* If a stuck measurement is received, repeat measurement */ in jent_gen_entropy()
671 int stuck; in jent_entropy_init() local
691 stuck = jent_stuck(&ec, delta); in jent_entropy_init()
703 if (stuck) in jent_entropy_init()
775 * If we have more than 90% stuck results, then this Jitter RNG is in jent_entropy_init()