Commit 510e0ec
rsa: fix OAEP padding decryption
With OpenSSL 1.1.1, using RSA OAEP as rsa_padding_mode failed with error
that the padding mode was unknown. This is because the OpenSSL
EVP_PKEY_METH for decryption, pkey_rsa_decrypt(), calls the RSA decrypt
method with RSA_NO_PADDING as padding, and then checks the OAEP padding
after raw decryption. This patch fixes the use of OAEP decryption by
allow RSA_NO_PADDING as an accepted padding value and uses inScheme to
the TPM as TPM_ALG_NULL, allowing RSA OAEP decryption to work correctly.
Signed-off-by: Raghu Krishnamurthy <raghupathyk@nvidia.com>1 parent 9b64650 commit 510e0ec
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
0 commit comments