Hacker News new | ask | show | jobs
by sansseriff 7 hours ago
That's what I'm feeling too. Maybe a proof that lattice cryptography can be broken with a polynomial-time quantum algorithm, the way that Shor's algorithm breaks RSA.

This could be like a real and true version of what was attempted 2 years ago but turned out to have human errors https://eprint.iacr.org/2024/555

This would be very problematic because of all the efforts that have gone into adopting lattice cryptography for our post-quantum needs. NIST has spent years and years preparing for the day when quantum computers get powerful enough and something like this would throw all of that away.

2 comments

That would be a sobering development for the post-quantum transition. On the other hand, it would be exciting to see hash-based cryptography take center stage, particularly for digital signatures.
Oh no, a quantum algorithm. I'll be using 1024 and sleeping sound.
None of the above are quantum algorithms.

Also, I can’t tell if you’re joking, but RSA-896 was broke recently, apparently for funsies, by someone at Anthropic. There’s nothing novel here - they threw lots of hardware at the problem and threw Claude at writing the software (using, AFAIK, existing algorithms).

I would assume that anyone with lots of compute, money and inspiration can break RSA-1024.

People seem to fundamentally misunderstand what the number represents. RSA1024 despite only being 14% larger requires 30x the amount of compute. RSA2048 works require 10^9 more compute.

Without algorithmic breaks you’re not going to do anything interesting. The recommendation for a long time by the way is to use RSA4096.

To this day I don’t understand the hubbub about it except as h just another milestone to tell you not to use RSA1024. Even still you’d need >60k of cutting edge GPUs to do this or between 1.5-2.5B just to crack keys that haven’t been supposed to be in use since 2013.

Cognition and Anthropic’s record results for largest key cracked aren’t a serious attack on RSA.

> RSA1024 despite only being 14% larger requires 30x the amount of compute.

Which means that it would be insane to use it without some really good reason (like expensive hardware that can't handle more and can't be replaced, and low value applications or additional safeguards). Something that can provably be broken with only 30x more compute than an effort that has already been done, publicly, for funsies, is highly likely to become practically breakable for criminals in the near future, and store-and-decrypt may be a thing.

> Even still you’d need >60k of cutting edge GPUs to do this or between 1.5-2.5B

I've seen an estimate that "34 extra bits of key length cost about 2.6 times the computation" which would be 37x to go from 896 to 1024 and roughly matches your 30x estimate.

https://saweis.net/posts/rsa-896.html states RSA-896 took 30 GPU-years (10 days x 2048 GPUs part time). Those were H100's, i.e. 4 year old GPUs, which you can rent for around $3/hour. So assuming 1110 GPU years for RSA1024, that puts the upper bound for the expected cost of an attack at $29M per broken key. Much less for someone who has access to idle GPU capacity.

As I understand it you don't need the full size of the cluster so the billions to buy the GPUs outright make no sense. 2000 GPUs would give you 55 GPU years, not 30, in 10 days, and you don't necessarily need the break to happen in 10 days.

Most importantly, attacks only get better. The software could still have plenty of optimization/tuning potential.

I’m replying to someone literally saying they think 1024-bit RSA is safe. 30x cost to break over something already broken is not much of a safety margin.
RSA2048 is 10^9 more bits. You should still be using ECC since it's much more efficient crypto per bit of key material, but I don't think we'll be seeing practical RSA1024 breaks let alone RSA2048 unless a hypothetical QC gets built (which I also am betting against).
It is when whatever you're protecting isn't worth the running cost of 60,000+ GPUs.
People used to accept DES because the cost of breaking it seemed like more than anyone would be willing to spend. That was then and this now: computing has gotten much cheaper and it’s wildly insecure.

You size your cryptography so that a hypothetical advanced civilization dedicating an entire Dyson sphere and a whole solar system worth of unfathomably efficient computers still can’t break it with math this is or seems likely to become available.

The latter is not actually much more expensive than the former, and it’s a lot safer. (We’re talking about the difference between 128-bit and 64-bit keys here, although one can imagine certain classes of threat model for which even 128-bit is a bit uncomfortably low.)

Put differently, there’s a reason that most guidance suggests 2048 or 4096-bit keys for RSA, DSA and DH. (There are unrelated reasons that classic natural-number-based DH is not recommended any more - doing it right is a mess. On the flip side, the large key sizes in these older algorithms might help resist quantum attack for longer than the newer elliptic-curve variants.)

Quantum computers are actually right around the corner. There have been massive advances in recent years.
Quantum computers are not a uniform thing, they vary in “processing power” just like a normal one, so specificity is needed.
Not in the sense that I'm referring to. We're quite close to having a single "logical" qubit for long-lived gate operation computers, across a number of different quantum modalities. Only one needs to work. After that, there are methods for making reliable quantum interconnects to scale up 1-qubit systems into N-qubit switched computers at datacenter scale, and these methods probably take 2-3 years to perfect (it's based on existing MEMS-switched photonics tech, not finicky quantum stuff, so it really is more of an engineering challenge). Quantum compute at a scale needed to break crypto systems by 2030 is quite reasonable.