Lines Matching defs:pool
17 * The high level overview is that there is one input pool, into which
23 * entropy collectors, described below, add data to the input pool.
98 * Returns whether or not the input pool has been seeded and thus guaranteed
103 * Returns: true if the input pool has been seeded.
104 * false if the input pool has not been seeded.
116 * Wait for the input pool to be seeded and thus guaranteed to supply
122 * Returns: 0 if the input pool has been seeded.
141 * pool is initialised.
144 * -EALREADY if pool is already initialised (callback not called)
240 /* Used by crng_reseed() and crng_make_state() to extract a new seed from the input pool. */
243 /* This extracts a new crng key from the input pool. */
645 * This function adds bytes into the input pool. It does not
756 * add_device_randomness() adds data to the input pool that
760 * the pool, but it initializes the pool to different values for devices
765 * entropy as specified by the caller. If the entropy pool is full it will
773 * inputs to the entropy pool. Using the cycle counters and the irq source
774 * as inputs, it feeds the input pool roughly once a second or after 64
782 * entropy pool. Note that high-speed solid state drives with very low
810 * earlier setup may already have pushed entropy into the input pool by the
847 * Add device- or boot-specific data to the input pool to help
851 * the entropy pool having similar initial state across largely
869 * when our pool is full.
898 unsigned long pool[4];
909 .pool = { SIPHASH_CONST_0, SIPHASH_CONST_1, SIPHASH_CONST_2, SIPHASH_CONST_3 },
912 .pool = { HSIPHASH_CONST_0, HSIPHASH_CONST_1, HSIPHASH_CONST_2, HSIPHASH_CONST_3 },
960 * The size of the copied stack pool is explicitly 2 longs so that we
966 unsigned long pool[2];
977 * Copy the pool to the stack so that the mixer always has a
980 memcpy(pool, fast_pool->pool, sizeof(pool));
986 mix_pool_bytes(pool, sizeof(pool));
987 credit_init_bits(clamp_t(unsigned int, (count & U16_MAX) / 64, 1, sizeof(pool) * 8));
989 memzero_explicit(pool, sizeof(pool));
1000 fast_mix(fast_pool->pool, entropy,
1025 * This function adds entropy to the entropy "pool" by using timing
1027 * of how many bits of entropy this call has added to the pool. The
1028 * value "num" is also added to the pool; it should somehow describe
1039 * sometime after, so mix into the fast pool.
1042 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num);
1205 * the input pool but does not credit it.
1357 /* Since we're crediting, enforce that it was all written into the pool. */
1422 * - poolsize - the number of bits of entropy that the input pool can
1426 * input pool. Always <= poolsize.
1428 * - write_wakeup_threshold - the amount of entropy in the input pool