Browse Source

do timing on actual RSA key sizes

Steffen Jaeckel 6 years ago
parent
commit
50584ac7ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      demos/timing.c

+ 1 - 1
demos/timing.c

@@ -707,7 +707,7 @@ static void time_rsa(void)
 
    if (ltc_mp.name == NULL) return;
 
-   for (x = 1024; x <= 2048; x += 256) {
+   for (x = 2048; x <= 8192; x <<= 1) {
        t2 = 0;
        for (y = 0; y < 4; y++) {
            t_start();