[tpm2] Re: {External} Re: OpenSSL 3 and tpm2 provider... / openssl cms

Petr Gotthard <petr.gotthard at centrum.cz> Thu, 28 Apr 2022 17:10:57 +0200
Newsgroups dev.linux.lists.tpm2
Message-ID <[email protected]>
>I also tried this:  
>
>openssl cms -encrypt -provider tpm2 -provider base -propquery ?provider=tpm2,tpm2.cipher!=yes -in file.txt -recip handle:0x01000013 -aes128
>
>Same result...

That should work as well. Have you tried "-provider default" instead of "-provider base"?

Openssl should be able to combine algorithms from different providers and the tpm2-openssl provider announces to openssl only those algorithms that are supported by the tpm2 chip itself. The only tricky bit is when the same algorithm is implemented twice, which is not your case... yet ;-).


Petr