In Germany wearing masks (and protective gear) to even legal protests is outlawed, too. Though you get 'only' max 1 year and not 10 years for doing so. For the riot police it's inverse: They don't have to be uniquely identifiable [2].
I personally don't think that such laws should exist in democratic systems.
[1] http://de.wikipedia.org/wiki/Vermummungsverbot (in german) [2] http://de.wikipedia.org/wiki/Kennzeichnungspflicht_für_Poliz... (german)