NIST is responsible for creating standards, NSA is responsible for using them. In addition to conducting surveillance, the NSA is also responsible for defending against foreign surveillance and cyberattacks. Primarily this takes the form of securing federal computer systems.