Remix.run Logo
▲ tptacek 3 hours ago

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 19 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_ 16 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 10 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_ 3 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