The Switching Generator: New Clock-Controlled Generator with Resistance against the Algebraic and Side Channel Attacks