Lines Matching refs:alloc_len
450 pool->alloc_len = min_len < min_alloc_size ? min_alloc_size : min_len; in rand_pool_new()
451 if (pool->alloc_len > pool->max_len) in rand_pool_new()
452 pool->alloc_len = pool->max_len; in rand_pool_new()
455 pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len); in rand_pool_new()
457 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in rand_pool_new()
500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach()
522 OPENSSL_secure_clear_free(pool->buffer, pool->alloc_len); in rand_pool_free()
524 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in rand_pool_free()
622 if (len > pool->alloc_len - pool->len) { in rand_pool_grow()
625 size_t newlen = pool->alloc_len; in rand_pool_grow()
646 OPENSSL_secure_clear_free(pool->buffer, pool->alloc_len); in rand_pool_grow()
648 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in rand_pool_grow()
650 pool->alloc_len = newlen; in rand_pool_grow()
742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add()
816 if (len > pool->alloc_len - pool->len) { in rand_pool_add_end()