Lines Matching defs:pool
117 size_t rand_pool_acquire_entropy(RAND_POOL *pool)
119 return rand_pool_entropy_available(pool);
154 size_t rand_pool_acquire_entropy(RAND_POOL *pool)
169 bytes_needed = rand_pool_bytes_needed(pool, 4 /*entropy_factor*/);
192 rand_pool_add(pool, arg, &v, sizeof(v) , 2);
194 return rand_pool_entropy_available(pool);
628 size_t rand_pool_acquire_entropy(RAND_POOL *pool)
631 return rand_pool_entropy_available(pool);
643 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
645 buffer = rand_pool_add_begin(pool, bytes_needed);
648 rand_pool_add_end(pool, bytes, 8 * bytes);
656 entropy_available = rand_pool_entropy_available(pool);
673 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
685 buffer = rand_pool_add_begin(pool, bytes_needed);
689 rand_pool_add_end(pool, bytes, 8 * bytes);
699 bytes_needed = rand_pool_bytes_needed(pool, 1);
701 entropy_available = rand_pool_entropy_available(pool);
708 entropy_available = rand_acquire_entropy_from_tsc(pool);
714 entropy_available = rand_acquire_entropy_from_cpu(pool);
726 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
731 buffer = rand_pool_add_begin(pool, bytes_needed);
737 rand_pool_add_end(pool, bytes, 8 * bytes);
738 bytes_needed = rand_pool_bytes_needed(pool, 1);
740 entropy_available = rand_pool_entropy_available(pool);
746 return rand_pool_entropy_available(pool);
753 int rand_pool_add_nonce_data(RAND_POOL *pool)
770 return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0);
773 int rand_pool_add_additional_data(RAND_POOL *pool)
791 return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0);