Another RSA challenge broken

Very recently Shi Bai, Pierrick Gaudry, Alexander Kruppa, Emmanuel Thomé and Paul Zimmermann announced the factorization of RSA-220, the smallest open entry in a list of challenges launched by RSA Laboratories in 1991. Concretely RSA-220 is a 729-bit integer that was guaranteed to factor as the product of two prime numbers, and Bai et al. were able to tell which prime numbers. Although this is not a record computation – the 768-bit RSA challenge was broken in 2009 by Kleinjung et al. – it confirms that the range of integers for which the factorization problem is completely feasible with relatively moderate means goes well beyond 700 bits.

Even though the following series of thoughts is not new, we wish to grasp this occasion to plot the bit lengths of the RSA challenges that have been broken so far against the years in which this was done.

1

Figure 1

In each of these factorizations the underlying algorithm was essentially the Number Field Sieve (NFS). The theoretical running time of the latter is a certain complicated expression in the number of input bits, a detailed version of which we omit here. But when restricted to the RSA challenges the graph of this expression looks as follows. We have scaled the outcome such that the 512-bit computation from 1999 due to te Riele et al. amounts to “one portion” of effort. (Concretely back then this computation took about 36 CPU-years, done in a couple of months using distributed computing.)

2

Figure 2

For example, according to theory, factoring a 729-bit RSA key should have taken roughly 6000 times as much effort. In reality it took about the same amount of time.

Overall the discrepancy between Figure 1 and Figure 2 is remarkable and, from a cryptographic point of view, raises concern. Pinning down why reality performs so much better than theory is a non-trivial task, let alone predicting to what extent it will keep doing so in the future. But it is clear that Figure 1 implicitly deals with a number of aspects that are being overlooked by the theoretical runtime analysis reflected in Figure 2. The most important such aspect is increasing computing power: according to Moore’s law this grows exponentially over time. Among the other ingredients we have better implementations, new theoretical tweaks to the NFS, cheaper computers, and maybe more resources, both financially and in terms of human effort.

One of the holy grails in integer factorization is breaking through the 1024-bit barrier. This would affect much of today’s secure communication (including online banking), where RSA keys of 1024 bits are still being used, against one’s better judgment. Based on Figure 1 it is ‘natural’ to guess that 1024-bit RSA will be broken within the next five to ten years, and experts seem to believe that it indeed will, while rumors go that it has already been done. However due to memory limitations and various obstructions to Moore’s law, it is not believed that the tendency suggested by Figure 1 will persist much further. In particular the currently recommended 2048-bit and 3072-bit RSA keys should amply suffice for a reasonable while.

Two events that would overthrow the discussion completely are (i) the practical realization of a quantum computer, and (ii) the discovery of a substantially better factoring method than the NFS. The first event would enable an implementation of Shor’s algorithm, which is an efficient method for factoring integers involving quantum operations. It would easily break all RSA challenges and far beyond. The second event might do the same using just classical computers.

Both (i) and (ii) are extremely challenging from a technological and mathematical point of view, respectively. But in the case of (i) this is being taken very seriously, and COSIC is involved in a European project preparing cryptography for the post-quantum era. The hardness of challenge (ii) on the other hand is not understood but has history on its side. Efficient algorithms for factoring have been pursued long before the dawn of RSA, with the earliest attempts dating back to the 17th century. The professional ‘computers’ of ancient times published impressive tables containing millions (!) of factorizations and were highly interested in efficiency. Incidentally, ideas of one of these record computers, a Belgian named Maurice Kraitchik, have indirectly led to the Number Field Sieve.

Thanks to Wouter Castryck for writing this blog post.