Lines Matching refs:max_len
23 size_t min_len, size_t max_len) in ossl_rand_pool_new() argument
32 pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? in ossl_rand_pool_new()
33 RAND_POOL_MAX_LENGTH : max_len; in ossl_rand_pool_new()
35 if (pool->alloc_len > pool->max_len) in ossl_rand_pool_new()
36 pool->alloc_len = pool->max_len; in ossl_rand_pool_new()
79 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in ossl_rand_pool_attach()
203 const size_t limit = pool->max_len / 2; in rand_pool_grow()
206 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow()
212 newlen = newlen < limit ? newlen * 2 : pool->max_len; in rand_pool_grow()
250 if (bytes_needed > pool->max_len - pool->len) { in ossl_rand_pool_bytes_needed()
256 pool->max_len, pool->len); in ossl_rand_pool_bytes_needed()
279 pool->max_len = pool->len = 0; in ossl_rand_pool_bytes_needed()
289 return pool->max_len - pool->len; in ossl_rand_pool_bytes_remaining()
304 if (len > pool->max_len - pool->len) { in ossl_rand_pool_add()
361 if (len > pool->max_len - pool->len) { in ossl_rand_pool_add_begin()