I probably don't really need to explain this bit.
Both of these things are things where someone suspends well-established rights and principles in the hopes of fighting something bad.
Also, these measures only ever keep escalating, and no one questions whether they're particularly proportionate. There is also a very single-minded mindset about it.
Could probably think of more.
Those are the parallels that I can see there.