Remix.run Logo
▲ tptacek 2 hours ago

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 2 hours 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 2 hours 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 an hour 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]