From: Pavol Žáčik Date: Mon, 11 Aug 2025 10:02:03 +0000 (+0200) Subject: apps/speed.c: Disable testing of composite signature algorithms X-Git-Tag: 3.5-PRE-CLANG-FORMAT-WEBKIT~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225a64b376778bb75a5e2203e8832b60bc2a0e6d;p=thirdparty%2Fopenssl.git apps/speed.c: Disable testing of composite signature algorithms 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 Reviewed-by: Tomas Mraz Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/28224) (cherry picked from commit dab850f4999e47182cbc1539795049a52e029b70) --- diff --git a/apps/speed.c b/apps/speed.c index 6c1eb59e91e..90f80b83683 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -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") &&