The NSA knew about "asymmetric cryptography" (what we'd call public-key cryptography) since the 1950's. They've always been far ahead of the outside world. It was the main draw of working there, which until very recently most (by numbers) cryptographers in America did.
[dead]
Why the "until very recently"? They probably increased those numbers in recent times.