When Constant-time Source Yields Variable-time Binary: Exploiting Curve25519-donna Built with MSVC 2015
The elliptic curve Curve25519 has been presented as pro- tected against state-of-the-art timing attacks . This paper shows that a timing attack is still achievable against a particular X25519 implemen- tation which follows the RFC 7748 requirements . The attack allows the retrieval of the complete private key used in the ECDH protocol. This is achieved due to timing leakage during Montgomery ladder execu- tion and relies on a conditional branch in the Windows runtime library 2015. The attack can be applied remotely.