AES and RSA weren't actually DARPA or NSA products. They were designed by academics who entered them into both USA and international competitions for new algorithms. The NSA would love the ability to read everyone's mail, but the global banking industry needs cryptography to work.