The laws are written around consent because the goal of the law is to enable punishment of people who intend to harm the US government. Note that Comey said that it's the individual's responsibility to know when material is confidential, even if that is not marked. Yet even information that is widely reported on in the media can still be considered confidential. The law is written to protect those who take "careless" or "negligent" actions in light of the difficulty of the task of maintaining confidentiality during the kind of extensive communications required to execute the business of government.