Lines Matching refs:entropy
62 * The harvest mutex protects the consistency of the entropy fifos and
67 /* Lockable FIFO queue holding entropy buffers */
73 /* Empty entropy buffers */
76 /* Harvested entropy */
86 "/entropy",
91 /* Deal with entropy cached externally if this is present.
107 keyfile = preload_search_by_type("/boot/entropy");
118 printf("random: no preloaded entropy cache available\n");
122 /* Read and attempt to overwrite the entropy cache files.
132 printf("random: entropy cache '%s' provides %ld bytes\n", *entropy_file, (long)PAGE_SIZE);
135 printf("random: entropy cache '%s' contents used and successfully overwritten\n", *entropy_file);
140 printf("random: entropy cache '%s' not overwritten and therefore not used; error = %d\n", *entropy_file, error);
143 printf("random: entropy cache '%s' not present or unreadable; error = %d\n", *entropy_file, error);
167 * Grab all the entropy events.
168 * Drain entropy source records into a thread-local
239 mtx_init(&harvest_mtx, "entropy harvest mutex", NULL, MTX_SPIN);
246 panic("Cannot create entropy maintenance thread.");
282 random_harvestq_internal(u_int64_t somecounter, const void *entropy,
313 memcpy(event->entropy, entropy, count);