Media playback is unsupported on your device Media caption The story of the report - in numbers

Afghan President Ashraf Ghani has said the CIA's brutal interrogation programme "violated all accepted norms of human rights in the world".

He is among many world leaders condemning how the agency imprisoned and questioned al-Qaeda suspects.

A US Senate report on the programme has said the harsh methods did not lead to unique intelligence that foiled plots.

The report also concluded the agency misled politicians and public about the 2001-2007 programme.

The CIA has defended its actions in the years after the 9/11 attacks on the US, saying they saved lives.

And President Barack Obama has said it was now time to move on, despite acknowledging some of the CIA's actions amounted to torture.

None of the countries where the prisons were located has been identified in the report, but several countries suspected to have hosted sites reacted strongly to the publication.

Image copyright EPA Image caption Ashraf Ghani said there was "no justification for such acts"

In a press conference on Wednesday, Mr Ghani, who became president in September, called the report "shocking".

"There is no justification for such acts and human torturing in the world."

He vowed to investigate how many Afghans had suffered abuse at US detention centres.

On Wednesday, US military officials said the final prisoners had left Parwan Detention Center at the Bagram air base, bringing to an end the US operation of any prisons in the country after more than a decade of war.

Pentagon spokesman Lieutenant Colonel Myles Caggins told the BBC that all prisoners held at Bagram had now been either transferred to Afghan custody or repatriated.

He said the Kabul government would now be responsible for all detentions in Afghanistan.

Bagram is one of the sites identified this week in the US Senate report.

Meanwhile, Poland's former president has publicly acknowledged for the first time his country hosted a secret CIA prison.

Aleksander Kwasniewski said that he put pressure on the US to end brutal interrogations at the prison in 2003.

"I told Bush that this co-operation must end and it did end," Mr Kwasniewski told local media.

Image copyright Getty Images

Key findings:

None of 20 cases of counterterrorism "successes" attributed to the techniques led to unique or otherwise unavailable intelligence

The CIA misled politicians and public

At least 26 of 119 known detainees in custody during the life of the programme were wrongfully held, and many held for months longer than they should have been

Methods included sleep deprivation for up to 180 hours, often standing or in painful positions

Saudi al-Qaeda suspect Abu Zubaydah was kept confined in a coffin-sized box for hours on end

Waterboarding and "rectal hydration" were physically harmful to prisoners, causing convulsions and vomiting

Lithuanian Prime Minister Algirdas Butkevicius called on the US to say whether CIA used his country to interrogate prisoners.

A previous Lithuanian investigation found the CIA set up and ran a facility near the country's capital but could not determine if prisoners were held there.

Germany's foreign minister also criticised US actions on Wednesday in the Bild newspaper, saying "what was then considered right and done in the fight against Islamist terrorism was unacceptable and a serious mistake".

But Frank-Walter Steinmeier praised Mr Obama for releasing the information, calling it a clear break with his predecessor.

Media playback is unsupported on your device Media caption BBC North America editor Jon Sopel speaks to report author Dianne Feinstein

UN Special Rapporteur on Human Rights and Counter-Terrorism Ben Emmerson said that senior officials from the administration of George W Bush who planned and sanctioned crimes must be prosecuted, as well as CIA and US government officials responsible for torture such as waterboarding.

"As a matter of international law, the US is legally obliged to bring those responsible to justice," Mr Emmerson said in a statement made from Geneva.

And Human Rights Watch executive director Kenneth Roth said that the CIA's actions were criminal "and can never be justified".

Image copyright Reuters Image caption John McCain said that the abuse of prisoners produced more bad than good intelligence

Correspondents say that the chances of prosecuting members of the Bush administration are unlikely.

The US justice department has said that it has already pursued two investigations into mistreatment of detainees since 2000 and concluded that the evidence was not sufficient to obtain a conviction.

Mr Obama said on Tuesday that he hoped that the publication of the report would "help us leave these techniques where they belong - in the past".

He banned harsh interrogation techniques after taking office in 2009.

Some Republicans on the Senate Intelligence Committee released a minority report, accusing the Senate report of having a "flawed analytical methodology", "inadequate objectivity" and "political considerations".

Media playback is unsupported on your device Media caption Barack Obama said some of the techniques amounted to torture

Influential Republican Senator John McCain, who was once held as a prisoner of war, argued that torture "rarely yields credible information".

The CIA has argued that the interrogations had helped save lives.

"The intelligence gained from the programme was critical to our understanding of al-Qaeda and continues to inform our counterterrorism efforts to this day," director John Brennan said.

However, the CIA also acknowledged mistakes in the programme, which was known internally as Rendition, Detention and Interrogation and took place from 2002-07.