Remix.run Logo
▲ kikokikokiko 3 hours ago

I'm more inclined to believe that the NSA was the one responsible to steer the standard setting bodies towards the encryption algos they already knew had flaws, and not the other way around. It's a lot easier to create something with a backdoor preinstalled and make it the standard, than to try and find a flaw after the fact.

▲adrian_b 2 hours ago | parent [-]

NSA will always attempt to weaken the cryptographic standards, but they are nonetheless limited by the fact that they must avoid making them so weak as to make possible the discovery of the weaknesses by adversaries.

Today, NSA must take into consideration the fact that anything that has been discovered by OpenAI and Anthropic with LLMs is likely to have been discovered or to be soon discovered by China too.

OpenAI and Anthropic may have obtained some hidden cryptographic results that could be important, but among the public announcements those made by Chinese are much more impressive than anything shown by OpenAI/Anthropic, i.e. they have broken a great number of candidates to recent cryptographic competitions including several proposed quantum-resistant algorithms, and also even a winner at such a competition, and also a new cipher proposed by NSA.

Therefore I do not think that NSA is pushing the adoption of certain quantum-resistant algorithms (ML-KEM and ML-DSA) because they know how to break them, because if that had been the case they should have been afraid that whatever attack they know now, it will soon also be discovered by China, which could then hack unimpeded all US "National Security Systems".

Thus I think that the promotion by NSA of the "Commercial National Security Algorithm (CNSA) Suite 2.0" is done in good faith, so those algorithms are secure enough for most purposes, even if they are not the best.

▲tptacek 2 hours ago | parent [-]

NSA has demonstrably and repeatedly strengthened cryptographic standards. The last time they "attempted to weaken" a standard was back in the 1970s with DES. 25 years ago, just after the conclusion of the key escrow debate, they inserted a backdoor into standards, but even that backdoor was cryptographically strong. Since then, we have repeated counterexamples to your claim:

* AES, selected by NIST with NSA's approval, remains the gold standard for bulk encryption.

* SHA2, NSA's response to SHA1, is so solid JP Aumasson believes it may never be broken.

* SHA3, selected by NIST with NSA's approval, is a European academic cryptography artifact.

* P-256 was until last week the best known classical-setting mainstream key exchange; implementations caught up to the engineering improvements in Curve25519, and we now know conclusively where the seeds came from (spoiler: benign and dumb).

People will read this and assume I'm saying "you should trust NSA". I don't believe that. A healthy distrust of NSA is a good thing. But it's also important to understand how the world actually works, or you'll end up saying things like "every NSA-approved standard has been weakened", and this is how you end up doing block cipher cascades and SRP.

Everything would be so much easier if NSA could simply be counted on to fuck everything up. But they can't. Cryptography is hard, and to reason about it, people need to actually learn at least a little bit of cryptography math; heuristics like the one you propose here are always counterproductive.

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

As I have already said, NSA has an ambivalent attitude against cryptographic standards, so indeed there are examples for both actions, when they have strengthened standards and when they have weakened standards.

Whether they have more often strengthened or weakened is debatable.

Your examples are not very good, because NSA has not contributed to Rijndael (AES) and Keccak (SHA3), it has just accepted these 2 good algorithms to be standardized, so it neither strengthened nor weakened the AES and SHA3 standards.

SHA3 has no relationship whatsoever with the European academic environment. Its origin comes from the European industry, more precisely from European manufacturers of embedded micro-controllers, for automotive and industrial applications.

The BDAP team, i.e. Guido Bertoni, Joan Daemen, Gilles Van Assche & Michaël Peeters, are employees of NXP Semiconductor and STMicroelectronics. This background explains why SHA3 is optimized for a hardware implementation in ASICs, and not for a software implementation.

I agree about the excellent strength of SHA2, which was developed by NSA, but it was not "NSA's response to SHA1", because SHA-1 had also been developed by NSA, but at a time when they had much less experience in designing one-way hash functions.

The original SHA from 1993 was just a slightly improved MD4. It had some serious defects, which were discovered internally by NSA before any widespread use of SHA, so the original standard was replaced after a couple of years by the corrected SHA-1, which resisted many more years until becoming broken.

After the standardization of AES, there was the obvious problem that there existed no standard one-way hash function with a strength comparable with AES, because SHA-1 was much weaker, so NSA solved this by designing SHA2, which offers a range of hash functions strong enough to be paired with the various variants of AES (originally also a variant to be paired with Triple-DES, which was deprecated later), and by that time they had learned how to design a good one-way hash function.

▲tptacek an hour ago | parent [-]

I don't think these rebuttals are really at all responsive to what I wrote. There are conspiracy theories about SHA-1 and the NSA's "tweaks" to it, and you've conceded that they're bogus by acknowledging that NSA's last mainstream NSA-authored standard has excellent security.

As of like 20 years ago, there will likely never again be an NSA-authored fundamental cryptography standard. The AES competition was too successful, and NSA's reputation is too complicated. NSA's influence on cryptography is now measured through their influence on open cryptography competitions.

You say there are examples "in both directions". I put up DES from the 1970s, and SHA2 from 2002. What are your other examples? What do you have besides Dual EC? Examples where NSA took a standard we all ended up using and depending on and weakened it. Do you have another example?

▲adrian_b 34 minutes ago | parent [-]

Since the standardization of AES, NSA has mostly laid low, but before that, for a decade there had been a continuous fight between NSA and those who wanted to use cryptography freely.

Fortunately, at that time there were in USA many more people willing to fight for their rights, and also the justice was much less biased and much less obedient to the executive than today.

One could write a book describing everything that NSA did during that time. There was the failed attempt to impose the universal use of the Skipjack cipher and of its Clipper implementation. There were the Internet browsers with crippled RC2 and RC4 ciphers. There were lawsuits, attempts to block some publications at conferences or in books.

More specifically and more recently about attempts to weaken standards, I have seen many very questionable decisions during the standardization work for the creation of some of the IEEE standards for cryptography, and some have wondered whether those were attempts to weaken those standards, but in such cases it is pretty much impossible to distinguish honest mistakes or instances of incompetence, from intentionally trying to make the standard weaker.

▲adgjlsfhk1 an hour ago | parent | prev | next [-]

Dual EC drbg?

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

[dead]