Can someone explain how such a simple and easily-testable bug existed in a seemingly-important system like this? I don't know much about Swiss e-voting, but seems even the most brain-dead unit test of the IsProbablePrime function should have caught this.
It is brain dead but this is old code from what I recall. We do not have e-voting at this time although the Post which outsourced this first nightmare of a version is still trying to push for it. I highly doubt we will see e-voting here until there is a verifiable proof that it is verifiable. There was a lot of bad press about this and people don't trust this crap. They tried a similar thing for E-ID which was suppos…
https://www.srf.ch/news/schweiz/elektronische-stimmabgabe-ha...
https://www.heise.de/news/Schweizer-Post-Hacker-konnten-E-Vo...