]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps/speed.c: Disable testing of composite signature algorithms
authorPavol Žáčik <zacik.pa@gmail.com>
Mon, 11 Aug 2025 10:02:03 +0000 (12:02 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 20 Aug 2025 14:14:09 +0000 (16:14 +0200)
Creating public key context from name would always fail
for composite signature algorithms (such as RSA-SHA256)
because the public key algorithm name (e.g., RSA) does
not match the name of the composite algorithm.

Relates to #27855.

Signed-off-by: Pavol Žáčik <zacik.pa@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28224)

apps/speed.c

index 2c3ec37d1239ed061c076f9564b773c5f415b1fb..a6d239c8cda81b1fb90d5b240d8dd2321785a834 100644 (file)
@@ -2281,9 +2281,11 @@ int speed_main(int argc, char **argv)
         }
 #endif /* OPENSSL_NO_DSA */
         /* skipping these algs as tested elsewhere - and b/o setup is a pain */
-        else if (strcmp(sig_name, "ED25519") &&
-                 strcmp(sig_name, "ED448") &&
-                 strcmp(sig_name, "ECDSA") &&
+        else if (strncmp(sig_name, "RSA", 3) &&
+                 strncmp(sig_name, "DSA", 3) &&
+                 strncmp(sig_name, "ED25519", 7) &&
+                 strncmp(sig_name, "ED448", 5) &&
+                 strncmp(sig_name, "ECDSA", 5) &&
                  strcmp(sig_name, "HMAC") &&
                  strcmp(sig_name, "SIPHASH") &&
                  strcmp(sig_name, "POLY1305") &&