If there is a substantial risk in a certain country like Algeria, Jordan, Egypt, etc., then diplomatic assurances cannot be used. If a country usually and systematically practices torture, then of course they would deny they were doing it because it is absolutely prohibited.
Either they should be released or brought before an independent court in the U.S. or in the country of origin to be judged there.