One of the most severe parts of the Espionage Act actually involves cryptography. https://www.law.cornell.edu/uscode/text/18/798
This was something that the Espionage Act Reform Act tries to fix. See: https://www.wyden.senate.gov/imo/media/doc/The%20Espionage%2... https://www.congress.gov/bill/116th-congress/senate-bill/340...
This is about disclosure of classified information; it increases the stakes for leaks involving cryptography. But we're not talking about leaked classified information.