But that doesn't mean that they're always two steps ahead of the public and that they couldn't be surprised by something coming out of OpenAI/Anthropic.
There's also a middle road where the NSA "bet" correctly that 256-bit EC crypto would be vulnerable to a non-galactic N/3 bit attack, but didn't actually have the attack themselves. Signs of them dropping P-256 for P-384 may just mean that they were acting conservatively on the basis of the publicly-known galactic N/3-bit attack.
They are secretive though and so we have no clue exactly what they know or don't. Most mathematicians by contrast are publishing in public and so the NSA knows pretty much everything everyone else knows. Encryption is very important to lots of real world things and so there are lots of public mathematicians publishing and it's generally suspected the NSA doesn't know much more than we do but they probably know something.
One detail that seems to be lacking from these conversations is that CNSA dropped many more algorithms, including AES-128 and SHA-256. All three algorithms (SHA-256, AES-128, and P-256) are assumed to provide 128 bits of effective security strength. Dropping them at the same time is reasonable assuming that 128 bits of security strength is not acceptable for use in National Security Systems. The NSA specifically said they dropped these algorithms for concerns over advancements in quantum computing at the time the change was made.
We don't need to go into conspiracy-brained territory to explain any of this. The NSA has not magically known how to break ECC all this time. They are just cautiously making rational decisions based on their threat model.
The NSA isn't stupid. They know that security through obscurity does not work [2].
[1]: https://pomcor.com/2016/02/09/nsas-faqs-demystify-the-demise...
Doesn't check out, CNSA 1.0 retained 128 bit strength DH and RSA.
And other countries with the capability to do this sort of research probably also snap up quite a few mathematicians capable of this sort of work. I'm sure China's MSS or Israel's Unit 8200 have also made some discoveries ahead of the public community.
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.
* 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.
1. Gather intelligence on non-domestic entities.
2. Protect domestic entities from foreign entities trying to do the same.
The question basically Comes down to which of those two you think they value more. The thing is they probably know if you back door something and you’re using it and that back door ever leaks or is found out you have also compromised your self.
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.
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?
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.
Crypto AG - Swiss global leader in cryptography. Owned by USG and sold compromised encryption until 2018.
40 bit limit on US TLS/SSL exports. Weak on purpose.
RSA. USG paid a $10m bribe to RSA Security to distribute Dual_EC_DRBG. Confirmed to be compromised by USG in snowden files.
Extended Random TLS. Designed to trigger the Dual_EC_DRBG compromise.
This speculative attack (subexponential in ecc) - in 2015 NSA randomly advises companies they don't need to move to P-384 any more. Bizarre at the time.