Lines Matching refs:entropy
131 int entropy, size_t min_len, size_t max_len, in rand_drbg_get_entropy() argument
149 pool->entropy_requested = entropy; in rand_drbg_get_entropy()
151 pool = rand_pool_new(entropy, drbg->secure, min_len, max_len); in rand_drbg_get_entropy()
232 int entropy, size_t min_len, size_t max_len) in rand_drbg_get_nonce() argument
481 size_t entropy) in rand_pool_attach() argument
501 pool->entropy = entropy; in rand_pool_attach()
543 return pool->entropy; in rand_pool_entropy()
564 pool->entropy = 0; in rand_pool_detach()
597 if (pool->entropy < pool->entropy_requested) in rand_pool_entropy_available()
603 return pool->entropy; in rand_pool_entropy_available()
613 if (pool->entropy < pool->entropy_requested) in rand_pool_entropy_needed()
614 return pool->entropy_requested - pool->entropy; in rand_pool_entropy_needed()
721 const unsigned char *buffer, size_t len, size_t entropy) in rand_pool_add() argument
757 pool->entropy += entropy; in rand_pool_add()
814 int rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy) in rand_pool_add_end() argument
823 pool->entropy += entropy; in rand_pool_add_end()