]> 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)
committerTomas Mraz <tomas@openssl.org>
Mon, 8 Dec 2025 14:47:41 +0000 (15:47 +0100)
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)

(cherry picked from commit dab850f4999e47182cbc1539795049a52e029b70)

apps/speed.c

index 6c1eb59e91eefe96ceec732bb06c9a966471ed72..90f80b8368306d192e16857af42b0dc2965c39da 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") &&