diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 3d751d026..e8d3e53dc 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -1011,7 +1011,7 @@ int main(int argc, char *argv[]) int keysize; mbedtls_rsa_context rsa; - for (keysize = 2048; keysize <= 4096; keysize *= 2) { + for (keysize = 2048; keysize <= 4096; keysize += 1024) { mbedtls_snprintf(title, sizeof(title), "RSA-%d", keysize); mbedtls_rsa_init(&rsa);