Remix.run Logo
▲ jfengel 3 hours ago

Just seeing if I understand:

This isn't necessarily anything to do with quantum encryption, but we needed to go to a post quantum encryption anyway. So rather than making one fix to work around whatever this is, and then another in a few years for the other thing, just push the deadline for the second thing.

Also... It sounds like this isn't an immediate problem, or they'd be calling for zero day type patching. It's just worrying, so get there soon, but they didn't (say) prove P=NP.

Have I got that right?

▲tptacek 3 hours ago | parent | next [-]

In the analysis above (and other analyses I've heard), the right way to think about it is: all the "mainstream" curves like P-256 and Curve25519 will have their security cut down to that of RSA-1024.

There has never to my knowledge been a public break of an RSA-1024 key, but literally everyone in the space thinks it's possible. Not in a "science will advance to this point where this can be done" sense, but rather "the science is settled, and it's just engineering effort holding the POC back".

Migrating things off RSA-1024 is a big deal; it would not be OK to deploy more RSA-1024 in 2026. It wouldn't have been ok in 2016. All the sudden, P-256 and Curve25519 are included on that list.

▲LVB 2 hours ago | parent [-]

Basic question from someone with only casual interaction with these things: is there a “longer” version of the ed25519 keys that I so often run into or use today? I keep reading about RSA 1k, 2k, 4k… does the same knob exist for the ed25519 type?

▲zarzavat an hour ago | parent | next [-]

If you want the closest replacement then you are probably looking for Curve448[0] which is an internet standard curve based on similar modern design principles as Curve25519. The other option would be the NIST curve P-521 which is older but has an even larger security margin.

I don't see much point in adopting P-384 over the other two, unless it's the only possible option.

[0] https://en.wikipedia.org/wiki/Curve448

▲tptacek 2 hours ago | parent | prev | next [-]

No, there are different curves with higher security levels, but you can't literally take ed25519 and just generate a bigger key for it.

▲cowlevel 2 hours ago | parent | prev [-]

Not exactly, each curve has a set size so you have to use a different curve. P-384 and P-521 are NSA-designed curves so I'd avoid them. I've heard ed448 works?

▲tptacek 2 hours ago | parent [-]

I think you should be careful taking advice from people that say things like "P-384 is an NSA-designed curve so you should avoid it". It sounds good on a message board but say it in front of a cryptographer and watch them roll their eyes. They were rolling their eyes about this 10 years ago (Menezes and Koblitz wrote a whole paper rolling their eyes about this), but it's especially cringe now after Steve Weis at Anthropic found the P-curve seeds.

▲cowlevel an hour ago | parent [-]

The seeds were found to be in DJB's "manipulable" category instead of "trivially manipulable". It's still possible that the NSA bruteforced many seeds in that format until finding one they liked.

▲tptacek an hour ago | parent [-]

The "manipulatable" fields on the safecurves page are all based on the argument that the seeds are unexplained. They're drand48 seeded with a contextually appropriate timestamp. Nobody is going to take this conspiracy seriously anymore.

▲cowlevel an hour ago | parent [-]

There are many contextually appropriate timestamps. They could have iterated until they found one they liked.

▲akerl_ an hour ago | parent [-]

This doesn’t really hold up in the face of math. The number of contextually appropriate inputs is a big number relative to some things, but it’s absolutely tiny compared to the number you’d practically need to go fishing for something to fundamentally weaken the resulting cryptography in the way the NSA would need to for this to be useful.

Though if I’m wrong, I’d love to apply for the job at the NSA where I just sit around and make up contextually relevant inputs for their machine to test.

▲Hypomixolydian 20 minutes ago | parent [-]

> number of contextually appropriate inputs is a big number relative to some things, but it’s absolutely tiny compared to the number you’d practically need to go fishing for something to fundamentally weaken the resulting cryptography in the way the NSA would need to for this to be useful

But does anybody have this "something" and "practically" defined enough, to be sure that that is really the case? What if 10% of randomly generated curves is breakable? Few hundred test timestamps will be enough to land in the breakable zone.

▲akerl_ 18 minutes ago | parent [-]

Thankfully the realities of cryptography and math make that not a concern.

The NSA (and all the groups like them) is strongly incentivized for two things:

1. Crypto being strong generally

2. Crypto that only they can decrypt

This means they don’t want crypto where there’s a massive systemic weakness: they want crypto where they hold a key to decrypt and nobody else can.

▲Hypomixolydian 11 minutes ago | parent [-]

Do not forget the reality of AI, happily rediscovering mathematical weaknesses known so far only to most powerful SIGINT agency. "Realities of math" are shaking right now. NOBUS is not guaranteed anymore. Not a good time for argumentum ad ignorantiam.

▲akerl_ 4 minutes ago | parent [-]

You’re misunderstanding. The premise of NOBUS isn’t to find a vuln nobody else is smart enough to find, because even before AI it was clear that was a losing strategy.

The goal is something only you can decrypt.

We don’t have to speculate here: the two most-cited examples up and down these comment pages line up. The NSA strengthened DES against this kind of systemic weakness, and DualEC was built around NSA-selected constants that actually do affect the security of the RNG

▲adastra22 3 hours ago | parent | prev | next [-]

The most likely outcome being guessed in the cryptography circles I'm in is a N^1/3 break in elliptic curve math. That means it would cost 2^85.3 attempts to break a 256-bit key, whether p256, ed25519, or secp256k1. That's nothing to sneeze at, but it is doable. Spend a few hundred million making hardware accelerators, and then it'd be a marginal electricity cost of ~$10M or so to break a key. Roughly 1024-bit RSA. Well within determined adversary capabilities.

There's a reason cryptographers consider 2^100 as the minimum bar for security, with 2^128 or 2^192 as the reasonable design threshold with safety margin. The industry had been moving towards 256-bit ECC (e.g. curve 25519) for a decade now, which only provided 128-bit security under the best-known attacks, but might now be reduced to 85-bit security. [Confusingly, "256-bit" elliptic curves are a raw statement about the bit length of their keys, not the security target, which was believed to be 128-bit before.]

▲tonfa 2 hours ago | parent | prev | next [-]

> Also... It sounds like this isn't an immediate problem, or they'd be calling for zero day type patching. It's just worrying, so get there soon, but they didn't (say) prove P=NP.

Still looks like a pretty tight timeline, for instance https://blog.google/security/keeping-https-connections-safe-... (when you take into account ~3 month validity of server certificates)

▲soaaa 2 hours ago | parent | prev | next [-]

[dead]

▲krupan 2 hours ago | parent | prev | next [-]

Right. They are just fear mongering. They want regulation.

▲k1kzlk34yl an hour ago | parent | prev [-]

[dead]