ptomato's and jgmmo's answers are both right (I think), but seem a little contradictory. If I can be compelled to provide physical evidence, why can't I be compelled to provide mental evidence, e.g. testimony about my crime?
If you think things are confusing now, wait until merely sticking electrodes on someone's head and making them think about certain things by talking to them, without requiring any voluntary response, can generate usable evidence.
Requiring someone to reveal a passphrase or access procedure to reveal encrypted or otherwise secured evidence, external to the brain, is the tip of the iceberg.