Symmetries of the resistance of mesoscopic samples in the quantum Hall regime