Traditionally, cryptography views cryptographic schemes as black-boxes. An adversary may have access to its inputs and outputs, but the internal computation within the box stays secret. Unfortunately, many real-world attacks have illustrated that the black-box model is overly optimistic. So-called side-channel attacks exploit the physical nature of cryptographic implementations and break security ...