Remix.run Logo
▲ Hypomixolydian a day ago

Let me repeat again, slower: from multiple possible timestamps only some were selected. Or, in other words:

while (!NSA_can_break_it(ecc_curve_from_values(hash(timestamp)))) { timestamp = next_timestamp(); }

So it is very easy to use "explainable" "innocent" values and still have the output backdoored.

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

Did you read the Riddle Wrapped In An Enigma paper?

▲Hypomixolydian 20 hours ago | parent [-]

Yes. Did you read BADA55 paper?

"How to manipulate curve standards: a white paper for the black hat" - recommended: http://safecurves.cr.yp.to/bada55/bada55-20140722.pdf

▲tptacek 20 hours ago | parent [-]

I did. A version of it was submitted to Usenix WOOT the year I co-chaired. I've also mentioned it on HN a dozen or so times. So, you read the Menezes/Koblitz paper and came away thinking a timestamp was sufficient flexibility to specify a backdoor curve? The whole paper is about how implausible that is with a much more flexible seed space.

▲nemo 20 hours ago | parent | prev [-]

The person you're replying to is a real cryptographer who does security work there and knows their cryptanalysis pretty well (they have lots of cryptographers on their podcast, it's great), while I'm an applied cryptographer at a FAANG working on services that handle billions of transactions a day across lots of domains (and I used to work with Ryan Sleevi for a while). I'm not saying that to make an argument from authority, just that we both have skin in the game and take these exact threat models very seriously.

What you're describing is a seed-grinding attack (the BADA55 argument). Unlike Dual_EC_DRBG where knowing the discrete log between points P and Q acts as a direct mathematical trapdoor, knowing the pre-image of a curve seed doesn't create any secret state. Once S = SHA1(preimage) is published in the spec, anyone evaluating the curve has the exact same information the NSA does.

Your while loop would only work if there existed a massive, dense class of weak prime-order curves (e.g., 1 in 2^30 curves having a secret discrete-log shortcut) that you could realistically stumble into just by grinding timestamps. After decades of intense algebraic cryptanalysis, no dense weak-curve class like that has ever been found for random prime curves. The math simply doesn't support it as a real-world attack.

It's worth learning more about how the NSA's Cybersecurity Directorate (CSD) operates, the NSA isn't just tasked with SIGINT. The CSD is the defensive wing of the NSA, they deal with cryptographic standards, and threat-intelligence sharing missions. That's where the push for adopting ML-KEM is coming from and they're planning to go all in on it for all Federal security. Seems unlikely they know of a threat to the math.

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

(My only correction to this is that I'm not a cryptographer; just a vulnerability researcher with an interest in cryptography vulnerabilities. Both my podcast cohosts are cryptographers, though.)

▲Hypomixolydian 10 hours ago | parent | prev [-]

> Once S = SHA1(preimage) is published in the spec, anyone evaluating the curve has the exact same information the NSA does.

DES S-Boxes (immune to differential cryptanalysis, then known only to NSA) were also public and nobody knew why they have specific form. So public != understandable for anyone.

Right now also nobody really knows why exactly we are alerted to drop the ECCs and run for life in general direction of PQC (all public info is vague and general - no single relevant paper produced). Of course we had decades of intense algebraic cryptanalysis, too to potentially answer this riddle (wrapped in enigma).