Cryptography ain’t easy. Seemingly small details like how many times a computationally intensive loop runs can give the game away.