The ethical concerns associated with various techniques used by the government

What are the ethical concerns associated with various techniques used by the government to deter criminals? May the same rationale used for torturing terrorists be used for the death penalty and for police beatings?