Skip to content

Commit da1b835

Browse files
committed
wolfcrypt/benchmark/benchmark.c: add RSA3072 to keygen bench.
1 parent 212708e commit da1b835

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

wolfcrypt/benchmark/benchmark.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8439,9 +8439,16 @@ void bench_rsaKeyGen(int useDeviceID)
84398439
#elif RSA_MAX_SIZE >= 4096
84408440
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \
84418441
(RSA_MIN_SIZE <= 1024)
8442-
static const word32 keySizes[3] = {1024, 2048, 4096 };
8442+
static const word32 keySizes[4] = {1024, 2048, 3072, 4096 };
84438443
#else
8444-
static const word32 keySizes[2] = {2048, 4096};
8444+
static const word32 keySizes[3] = {2048, 3072, 4096};
8445+
#endif
8446+
#elif RSA_MAX_SIZE >= 3072
8447+
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \
8448+
(RSA_MIN_SIZE <= 1024)
8449+
static const word32 keySizes[3] = {1024, 2048, 3072 };
8450+
#else
8451+
static const word32 keySizes[2] = {2048, 3072 };
84458452
#endif
84468453
#elif RSA_MAX_SIZE >= 2048
84478454
#if (!defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL)) && \

0 commit comments

Comments
 (0)