I think intelligence gathering is a minor act of military belligerence and gathering military intelligence on US citizens should be treated no different than firing a weapon on US citizens. Cryptology algorithms have been classified as ordinance before, so there is plenty of legal precedent...