Torturing security officials sentenced to 24 years