If the surveillance doesn't require a warrant, then by default it isnt illegal.
I am quite serious, it depends on how YOU define torture. Are we talking Spanish Inquisition, water boarding, sensory deprivation, solitary confinement, pretrial confinement? I have seen all of those listed, one time or another, as torture.