The 4th Amendment obviously doesn't comment on public-key encryption but it clearly wasn't designed to make it more difficult to investigate crimes (wouldn't investigating crimes be easier with unreasonable search and seizure?) and make it plainly illegal to wander around through people's personal effects looking for evidence of crimes.