Skip to content

Commit

Permalink
wolfcrypt/benchmark/benchmark.c: add RSA3072 to keygen bench.
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Sep 19, 2024
1 parent 212708e commit da1b835
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions wolfcrypt/benchmark/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -8439,9 +8439,16 @@ void bench_rsaKeyGen(int useDeviceID)
#elif RSA_MAX_SIZE >= 4096
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \
(RSA_MIN_SIZE <= 1024)
static const word32 keySizes[3] = {1024, 2048, 4096 };
static const word32 keySizes[4] = {1024, 2048, 3072, 4096 };
#else
static const word32 keySizes[2] = {2048, 4096};
static const word32 keySizes[3] = {2048, 3072, 4096};
#endif
#elif RSA_MAX_SIZE >= 3072
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \
(RSA_MIN_SIZE <= 1024)
static const word32 keySizes[3] = {1024, 2048, 3072 };
#else
static const word32 keySizes[2] = {2048, 3072 };
#endif
#elif RSA_MAX_SIZE >= 2048
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \
Expand Down

0 comments on commit da1b835

Please sign in to comment.