Why do you consider anything encrypted as an extension of oneself? The 5th amendment protects you from being forced to testify against yourself. It does not protect you from being forced to turn over evidence. That is where obstruction of justice charges come into play. In your example of refusing to turn over a key to a diary is no different to the government than you burning that diary. You are actively preventing the government from accessing preexisting evidence.