Open vitalyk-radware opened 11 months ago
@vitalyk-radware I understand your are using a RSA certificate, RSA Encrypt and Decrypt is not supported in provider unlike engine and only RSA sign and verify operation is supported in provider. Can you confirm your certificate details ?
yes, the certificate is RSA. can you please tell why rsa_decrypt is not part of Provider ? is it a limitation of Provider by definition ? obviously , it affects performance... how we can overcome this problem? thank you!
@vitalyk-radware I don't remember any limitation of Provider. The QAT provider needs additional changes to support this encrypt or decrypt which we could not get it included. I will check and get back to you to see if we can include this support into the upcoming releases later. Feel Free to raise PR if you have any changes to support this.
hi, please advise about following issue.
we see that our server spends much time in function RSAZ_1024_mod_exp_avx2() . below is backtrace of this call. I would like to ask , why despite having qatprovider, this RSA crypto operation is done in software ?
here are server and client commands:
openssl server is 3.1.4 , qatengine 1.4.0
we do not always get to RSAZ_1024_mod_exp_avx2 call, but i see this flow :
rsa_decrypt -> RSA_private_decrypt -> rsa_ossl_private_decrypt -> rsa_ossl_mod_exp -> BN_mod_exp_mont_consttime_x2 -> BN_mod_exp_mont_consttime
so, please let me know, why we entered rsa_ossl_private_decrypt ? why not some qat rsa function?
thank you in advance, Vitaly
below are details how openssl and qat were made:
output of s_server :