The relevant part of the First Amendment here prohibits the making of any law, quote, "abridging the freedom of speech." And it's pretty well-established that speech comes in many forms.
Laura Sydell[Eric]Goldman [a professor at Santa Clara University School of Law] says back in the 1990s, courts began to confront the question of whether software code is a form of speech. Goldman says the answer to that question came in a case called Bernstein v. U.S. Department of Justice. Student Daniel Bernstein who created an encryption software called Snuffle. He wanted to put it on the Internet. The government tried to prevent him, using a law meant to stop the export of firearms and munitions. Goldman says the student argued his code was a form of speech.
Laura SydellThe Washington Post speaking out against state legislation that he believed would let businesses deny services to gay, lesbian and transgender people. [Tim] Cook himself came out as gay in the pages of Bloomberg Businessweek.
Laura SydellLooking back at Tim Cook's public appearances in the last few years makes the standoff with the government look almost inevitable.
Laura Sydell