I've written and given a lot of references to attacks, countermeasures, fighting the compilers and even non-cryptographic side-channel attacks to uncover someone's Twitter identity:
- https://github.com/mratsim/constantine/wiki/Constant-time-ar...
- https://github.com/mratsim/constantine/wiki/Constant-time-ar...