Lines Matching defs:crng
11 * - Fast key erasure RNG, the "crng".
192 * Fast key erasure RNG, the "crng".
229 struct crng {
235 static DEFINE_PER_CPU(struct crng, crngs) = {
243 /* This extracts a new crng key from the input pool. */
304 * Return whether the crng seed is considered to be sufficiently old
334 struct crng *crng;
368 crng = raw_cpu_ptr(&crngs);
371 * If our per-cpu crng is older than the base_crng, then it means
374 * for our per-cpu crng. This brings us up to date with base_crng.
376 if (unlikely(crng->generation != READ_ONCE(base_crng.generation))) {
379 crng->key, sizeof(crng->key));
380 crng->generation = base_crng.generation;
385 * Finally, when we've made it this far, our per-cpu crng has an up
391 crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len);
565 * the per-cpu crng and all batches, so that we serve fresh
726 pr_notice("crng init done\n");
1212 * reseeding the crng.