Lines Matching defs:crng
11 * - Fast key erasure RNG, the "crng".
147 * Add a callback function that will be invoked when the crng is initialised,
174 * Fast key erasure RNG, the "crng".
214 struct crng {
220 static DEFINE_PER_CPU(struct crng, crngs) = {
248 /* This extracts a new crng key from the input pool. */
321 struct crng *crng;
348 crng = raw_cpu_ptr(&crngs);
351 * If our per-cpu crng is older than the base_crng, then it means
354 * for our per-cpu crng. This brings us up to date with base_crng.
356 if (unlikely(crng->generation != READ_ONCE(base_crng.generation))) {
359 crng->key, sizeof(crng->key));
360 crng->generation = base_crng.generation;
365 * Finally, when we've made it this far, our per-cpu crng has an up
371 crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len);
579 * the per-cpu crng and all batches, so that we serve fresh
726 pr_notice("crng init done\n");
775 * and then force-reseeds the crng so that it takes effect immediately.
830 pr_notice("crng reseeded on system resumption\n");
965 * that it's used by the crng posthaste.
972 pr_notice("crng reseeded due to virtual machine fork\n");
1360 * reseeding the crng.