Yes, but the case law for this is beyond complex and changes by jurisdiction.
I think it hinges on if the search for the hard drives is for specific files or exploratory. IOW "we saw traffic that led us to believe he downloaded this specific piece of CP on this date and we want to verify its there" vs "we believe there is CP on his hard drive based on testimony from this person who said he shared CP with that person".
But the case law for this is super complex and changes by jurisdiction.
But if a judge tells you to unlock the hard drive they will 100 percent throw you in jail until you unlock it. For years even. If what they did was "illegal" then there will be no consequences for the judge.
I think it hinges on if the search for the hard drives is for specific files or exploratory. IOW "we saw traffic that led us to believe he downloaded this specific piece of CP on this date and we want to verify its there" vs "we believe there is CP on his hard drive based on testimony from this person who said he shared CP with that person".
But the case law for this is super complex and changes by jurisdiction.
But if a judge tells you to unlock the hard drive they will 100 percent throw you in jail until you unlock it. For years even. If what they did was "illegal" then there will be no consequences for the judge.