Lines Matching defs:entropy
66 size_t entropy)
86 pool->entropy = entropy;
124 * Return the |pool|'s entropy to the caller.
128 return pool->entropy;
149 pool->entropy = 0;
165 * If |entropy_factor| bits contain 1 bit of entropy, how many bytes does one
166 * need to obtain at least |bits| bits of entropy?
173 * Checks whether the |pool|'s entropy is available to the caller.
174 * This is the case when entropy count and buffer length are high enough.
177 * |entropy| if the entropy count and buffer size is large enough
182 if (pool->entropy < pool->entropy_requested)
188 return pool->entropy;
192 * Returns the (remaining) amount of entropy needed to fill
198 if (pool->entropy < pool->entropy_requested)
199 return pool->entropy_requested - pool->entropy;
242 * the input has 1 / |entropy_factor| entropy bits per data bit.
273 * are used to collect entropy data without any error handling
300 * random input which contains at least |entropy| bits of
306 const unsigned char *buffer, size_t len, size_t entropy)
334 * For entropy data, as long as the allocation request stays within
342 pool->entropy += entropy;
396 * to the buffer which contain at least |entropy| bits of randomness.
399 int ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy)
408 pool->entropy += entropy;