If the prosecution simply suspects there to be incriminating evidence on the encrypted drive, however strongly, then compelling you to decrypt the drive would be "testimonial". After the decryption, they'd have evidence they didn't have (or at least didn't know of) before the decryption. That's effectively testifying against yourself, and thus subject to 5th Amendment protection.
If, OTOH, the government already specifically knows that you have incriminating data on an encrypted drive, this test doesn't seem to apply, per my reading. It's not "testimonial" for you to decrypt the drive, as they already know the evidence exists, and that it's on the encrypted drive. The plaintext doesn't give them anything they don't already know about.
An interesting question in all this is the disposition of additional evidence, beyond the stuff they already knew about, in such a case. Contrived example: if John Doe is compelled to decrypt his laptop to provide the prosecution with evidence they already knew about in an embezzlement case, and they happened also to find child porn (which they had no reason to suspect the existence of, and weren't searching for) on the drive, does that mean new charges?
How can one know something exists if they don't have it? They can be "pretty sure", but they can't "know". Therefore, providing the encryption passphrase is always testimonial. (Mumble, mumble, something about a radioactive cat...)
I don't think the distinction the court is making here is particularly epistemological. The question isn't even directly about the specific evidence on the encrypted drive. It's about whether the act producing said evidence, itself, would be testimonial. If the prosecution "knows" you have this evidence, however — legally, of course — they came by that knowledge, then the act of producing it isn't testimonial. If they don't know of specific evidence, OTOH, then compelling you to produce any evidence you might have would be.
If, for example, you were dumb enough to admit to a third party that you keep the map showing where you buried the bodies on an encrypted drive, that person's testimony might be sufficient. Worse, you might have let slip that's where the data is while being interrogated. Or maybe the Customs agent saw a file named "XYZ Company Fraud.xls" the last time you came back from overseas, and now you're being prosecuted for defrauding XYZ Co. There are countless ways for the man to come by knowledge of the existence of a specific piece of evidence.
They had wiretaps of Fricosu admitting to someone else that specific information existed on his laptop. Although the prosecution did not have the plaintext documents that Fricosu was referring to, his admission over the phone was deemed enough for it to be a foregone conclusion that the documents existed on his laptop, and therefore the court could order Fricosu to decrypt.
Quoting footnote 27 of Fricosu: [In the wiretap transcript], Friscosu essentially admitted every testimonial communication that may have been implicit in the production of the unencrypted contents.
I don't see how this ends well for We, the People.
even more important, although brief, is that by decrypting the drive the defendant would be automatically admitting he had control over the drive and its contents... something otherwise arguable on an unenecrypted drive, meaning he woud be testifying against himself for any illegal material found, even. if unrelated to thecase.