Thermodynamics of the binary symmetric channel