While it has not been settled in court yet, IIRC, the 5th amendment right against self-incrimination is the legal rationale used to argue against forced decryption [1].
[1] https://www.eff.org/deeplinks/2013/10/new-eff-amicus-brief-a...
Thanks for the link. I googled for a bit to see if there had been a decision by the Massachusetts Supreme Judicial Court, but it doesn't appear so.
I watched a bit of the oral argument [1] from last November, and the state's argument was that since they were only asking for an order for the defendant to decrypt the data (not hand over the decryption key), the the defendant's 5th amendment rights would not be violated.
It's not bulletproof like some sort of mathematical proof, but the law operates with much looser standards of proof.
Additionally, in U.S. case law there is a precedent for 5th amendment protections applying to being forced to reveal encryption keys:
https://www.eff.org/press/releases/appeals-court-upholds-con...
Ok, so I get arrested and my phone is taken. Lucky for me my phone is encrypted and I was able to shut it off before it left my possession. So I've made it more difficult for the phone to be searched on the spot, but what is preventing the authorities from compelling me to decrypt the phone eventually?