Merge pull request #7471 from ColtonWilley/update-benchmark-rsa-size-parsing

Update benchmark to only parse rsa size if keygen is enabled
This commit is contained in:
Sean Parkinson
2024-04-26 09:11:32 +10:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@ -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 ]
)

View File

@ -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 },