tpm2: Do not set RSA_FLAG_NO_BLINDING on RSA keys anymore

Do not set the RSA_FLAG_NO_BLINDING on RSA keys anymore. The BoringSSL
documentation states the following:

"RSA_FLAG_NO_BLINDING disables blinding of private operations, which is
a dangerous thing to do. It is deprecated and should not be used. It will
be ignored whenever possible."

So, follow this documentation. OpenSSL does not seem to say much about it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2022-06-03 21:51:57 -04:00 committed by Stefan Berger
parent b1b2cf5e15
commit a4b8797259

View File

@ -439,8 +439,6 @@ InitOpenSSLRSAPublicKey(OBJECT *key, // IN
EVP_PKEY_assign_RSA(*pkey, rsakey) == 0)
ERROR_RETURN(TPM_RC_FAILURE)
RSA_set_flags(rsakey, RSA_FLAG_NO_BLINDING);
retVal = TPM_RC_SUCCESS;
Exit: