267 points · by mooreds · 3y ago · 55 comments
Cloudflare recently enabled post-quantum cryptography, in which they're using X25519+Kyber [0]. Similarly, Signal's post-quantum cryptography also uses the same [1].
I'm guessing this spawned from the fact that a post-quantum algorithm was broken on classical computers a few years ago [2].
So now any attacker would have to break both the classical algorithm and the post-quantum algorithm.
[0] https://blog.cloudflare.com/post-quantum-to-origins/
[1] https://signal.org/blog/pqxdh/
[2] https://www.quantamagazine.org/post-quantum-cryptography-sch...
The point is: Many of these algorithms are rather new. The fact that multiple post quantum algorithms have been broken that were seen as promising shows that there is a risk with these new algorithms.
However, it should be said that the broken algorithms were in, let's say, more experimental subfields of post quantum cryptography.
If it turns out that both the classical and quantum hard algorithms are weak we're just screwed, yes. That said, at this point it's not even clear, as far as I know, that many classical algorithms are event going to be broken under QC.
In that scheme, you have to compromise both the PQC and ECC key agreements, independently.
Which is why having as many eyes as possible is important.
Now it's very well possible that it comes back with mitigations.
And even the still OK candidates are using a young area of math.
I wouldn't worry too much about post-quantum algorithms for any production code in the next couple of years (decades?) myself.
Most importantly, Shor is not the algorithm of choice for first-gen hardware where the central challenge is likely to be circuit depth due to error correction overhead. The current front-runner is a probably proposal by Regev [0] with a space-optimization by Ragavan et al. [1], which factors an n-bit integer with O(n log n) logical qubits and a circuit depth of O(n).
What you should be looking for when studying quantum computing press releases is "fault tolerance": A central problem in QC is that the underlying hardware needs to be better than an (architecture-specific) threshold, before error-correction can be applied without introducing more errors than it corrects.
Nobody has really crossed the threshold yet with scalable hardware, and when someone does, the overhead will be abysmal (2 or 3 layers of error correction, each with a factor ~100 overhead in space and time). Still, there are two reasons to be optimistic:
One reason is that once a system crosses the threshold, any improvement in hardware will result in exponential improvements in the encoded operations, meaning that there will be a Moore-style exponential development.
Another reason is that there are several "dark mode" VC-funded companies working towards intrinsically scalable systems based on optical QC: If any of these achieve fault tolerance, they will be scalable from day one.
[0]: http://arxiv.org/abs/2308.06572 [1]: http://arxiv.org/abs/2310.00899
[0]: https://en.wikipedia.org/wiki/Harvest_now,_decrypt_later
I'm sure many oppressive regimes would love to know what their citizens where privately talking about, even if it was ten years ago. I think its a valid concern that quantum computing might take off, and in ten years you could run shores algo on an AWS instance. Long con attackers could MITM chats for juicy blackmail in the future.
For data in transit that's probably fine, but for data at rest, you have to consider how long that data might remain at rest. If you have 30 year old encrypted data that is now breakable, is that a problem? It depends on the use case.
Also keep in mind that any data in transit could be tapped and saved and become data at rest.
So really you have to ask yourself, is it critical that this data remain encrypted in 20 years?
Fun fact: I emailed my senator, chair of the foreign relations committee, on concerns over China's heavy investment here. I got a reply from an overworked intern about banning Tiktok !
https://quantum.microsoft.com/en-us/experience/quantum-crypt...
However, whether you should worry about post-quantum crypto or not is a risk assessment question, not a physical one.
That said, you are right to be wary; if there is a side-channel or implementation vulnerability in a PQ algorithm ... then you are much worse off using it. Worst-case; imagine an RCE in the PQ implementation. So it's a good idea to be cautious and check the code rigorously.
https://blog.cr.yp.to/20231023-clumping.html
I believe there is an HN submission on it already.
If this is true and quantum computers of that size do come into existence how does it impact Bitcoin?