I took a course in Cryptography in grad school. Our professor was an old coot with decades of experience in the field. He had several interesting stories to tell involving the NSA and Cryptography. (Now, this is from memory, as the course was decades ago and grad school is a blur now, and memories from the course have been garbge collected decades ago).
This is from the time when DES was Da Bomb. It was supposed to be unbreakable. It had 16 rounds of these "shuffle" and "exchange" boxes (I may be screwing up the terms here, so pardon the ignorance). It had been around for a couple of decades and resisted everything thrown at it. Until someone came up with an attack for ciphers built with those specific boxes. And everybody started panicing .... except that this attack worked only on ciphers up to 15 such boxes in sequence, and not 16 (as was the case with DES). His claim was that the NSA knew about the attack, and that's why DES had 16 such rounds of boxes.
His gut feeling was that the NSA is about ~20 years ahead of the rest of the world in Cryptography.
Leaks from a decade ago now showed that the emperor has no clothes
It just has sovereign immunity to do things that would put the rest of us in prison
the coding styles and research wasn’t particularly impressive
We know now that the NSA strengthened DES against mathematical attacks, but weakened it against brute force attacks.