@@ -2164,6 +2164,9 @@ static int run_rsa(void *args)
21642164 int verify_only = extra_args -> verify_only ;
21652165 int encrypt_only = extra_args -> encrypt_only ;
21662166 int decrypt_only = extra_args -> decrypt_only ;
2167+ #ifndef QAT_OPENSSL_PROVIDER
2168+ int rsa_all = extra_args -> rsa_all ;
2169+ #endif
21672170 int pad = extra_args -> padding ;
21682171
21692172#ifdef QAT_OPENSSL_PROVIDER
@@ -2570,7 +2573,7 @@ static int run_rsa(void *args)
25702573 }
25712574 } /* count for-loop */
25722575
2573- if (encrypt_only || decrypt_only ) {
2576+ if (encrypt_only || decrypt_only || rsa_all ) {
25742577 /* Compare and verify the encrypted and decrypted message */
25752578 if (verify ) {
25762579 if (memcmp (ptext , expectedPtext , plen ))
@@ -2591,7 +2594,7 @@ static int run_rsa(void *args)
25912594 }
25922595 }
25932596
2594- if (sign_only || verify_only || status ) {
2597+ if (sign_only || verify_only || status || rsa_all ) {
25952598 /* Compare and verify the signed and verified message */
25962599 if (verify ) {
25972600 if (memcmp (verMsg , HashData , verLen )) {
@@ -2802,12 +2805,15 @@ static void rsa_tests_triage(TEST_PARAMS *args, int sign_only,
28022805 extra_args .encrypt_only = encrypt_only ;
28032806 extra_args .decrypt_only = decrypt_only ;
28042807
2808+ if (!sign_only && !verify_only && !encrypt_only && !decrypt_only ) {
2809+ extra_args .rsa_all = 1 ;
2810+ }
28052811 for (i = 0 ; i < sizeof (padding ) / sizeof (padding [0 ]); i ++ ) {
28062812 extra_args .padding = padding [i ];
28072813 if (((padding [i ] == RSA_PKCS1_OAEP_PADDING ) &&
2808- (sign_only || verify_only )) ||
2814+ (sign_only || verify_only || extra_args . rsa_all )) ||
28092815 ((padding [i ] == RSA_X931_PADDING ) &&
2810- (encrypt_only || decrypt_only )))
2816+ (encrypt_only || decrypt_only || extra_args . rsa_all )))
28112817 continue ;
28122818 if (!args -> enable_async )
28132819 run_rsa (args );
0 commit comments