[This post is based on a talk by David Jao at the SIAM Conference on Applied Algebraic Geometry at 11/7/2019]
Just because an algorithm is conjectured to be secure, does not mean any implementation of it inherits that property automatically. Typically, a naive implementation will result in possible data being leaked through differences in power consumption, sound, time, temperature, etc. These so-called side-channel attacks have been around for a while now, and they must be taken into account when implementing any cryptographic protocol. In particular it is advised to make algorithms constant time such that no data can be gathered from the execution time.
CSIDH is a fairly new isogeny-based key exchange protocol that performs slightly worse in terms of execution time than SIDH. The problem is that a straightforward implementation of the algorithm is not secure at all. The underlying reason for this is that a secret key \( (0,0,\ldots,0) \) takes no time to evaluate at all, whereas a secret key \( (5,5,\ldots,5) \) corresponds to evaluating \(74\cdot 5\) isogenies of small degree. SIKE on the other hand, is a constant-time implementation based on SIDH that made it to round 2 of the NIST comptetition for a call for post-quantum key exchange protocols.
In a live demonstration, David Jao showed how fast all of these protocols can be executed for a (conjectured) NIST security level 1. SIKE is constant time and finished in about 5ms on his laptop, whereas key compression gives a 2x overhead to roughly 10ms (while simultaneously almost halving the bytes needed for storing the key). CSIDH’s original (non-constant-time) implementation took about 50ms, with a 2.5x overhead for an implementation that does not leak information from execution time.
For embedded devices, the difference between SIKE and CSIDH is a lot larger. A demonstration was done on a Google Pixel 2 with a 64-bit ARM Cortex-A72 core for both protocols. SIKE can be executed in a couple dozen milliseconds, whereas the CSIDH implementation takes about 10 seconds for computing a single group action (which needs to be doubled for a full key exchange). This CSIDH implementation is constant time and uses optimized field arithmetic in various ways (for the details, see [1]).
Does this large disparity between the two protocols on embedded devices mean the end of CSIDH? Not necessarily. CSIDH has many things going for it, such as efficient signatures and easy key verification. And even though SIKE only has (uncompressed) 330 byte keys, CSIDH performs even better with 64 byte keys. In the end, CSIDH is still at its infancy when it comes to optimizing performance, so it is quite likely that its running time can still be improved considerably.
References: [1] Amir Jalali, Reza Azarderakhsh, Mehran Mozaffari Kermani and David Jao. Towards Optimized and Constant-Time CSIDH on Embedded Devices. https://eprint.iacr.org/2019/297.pdf


