]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
fix: openssl speed: RSA encryption is on the pubkey, not the privkey
authorRichard Levitte <levitte@openssl.org>
Mon, 1 Jul 2024 13:28:14 +0000 (15:28 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 3 Jul 2024 09:24:35 +0000 (11:24 +0200)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24776)

(cherry picked from commit bb90a7861cbf27e29790b66077c23a2e9805014b)

apps/speed.c

index 2f1c8a6bf72cdd3e72593749f7553804378515f0..2fd18857921ff69513911b4c3707495075bbf2d2 100644 (file)
@@ -3031,7 +3031,7 @@ int speed_main(int argc, char **argv)
             ERR_print_errors(bio_err);
             op_count = 1;
         } else {
-            pkey_print_message("private", "rsa encrypt",
+            pkey_print_message("public", "rsa encrypt",
                                rsa_keys[testnum].bits, seconds.rsa);
             /* RSA_blinding_on(rsa_key[testnum],NULL); */
             Time_F(START);