Remix.run Logo
▲ cowlevel 2 hours ago

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_ 17 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_ 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