From 7485e9935d5fc4a67c0b36a01f00619a51263c50 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Thu, 25 Apr 2024 11:46:18 -0700 Subject: [PATCH] Update benchmark to only parse rsa size if keygen is enabled, update keygen option help in configure.ac --- configure.ac | 2 +- wolfcrypt/benchmark/benchmark.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 51fa5caa3..a4d9a088b 100644 --- a/configure.ac +++ b/configure.ac @@ -3545,7 +3545,7 @@ fi # KEY GENERATION AC_ARG_ENABLE([keygen], - [AS_HELP_STRING([--enable-keygen],[Enable key generation (default: disabled)])], + [AS_HELP_STRING([--enable-keygen],[Enable key generation (only applies to RSA key generation) (default: disabled)])], [ ENABLED_KEYGEN=$enableval ], [ ENABLED_KEYGEN=no ] ) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 2c24056ec..f48bf3a21 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -926,7 +926,9 @@ static const bench_alg bench_asym_opt[] = { { "-rsa-kg", BENCH_RSA_KEYGEN }, #endif { "-rsa", BENCH_RSA }, + #ifdef WOLFSSL_KEY_GEN { "-rsa-sz", BENCH_RSA_SZ }, + #endif #endif #ifndef NO_DH { "-dh", BENCH_DH },