I challenge you to find an example of a blanket ban on all masks, that doesn't rely on other factors like threatening violence, rallying, intent to hide identity, or a respresenting specific gang design/color.
'Intent to hide identity' sounds like a human right, criminalized. Unless asked by an officer, and even then in limited circumstances do I have to identify myself.