Skip to content

Commit 60ae54f

Browse files
committed
fix timing demo
1 parent e3d1fa9 commit 60ae54f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demos/timing.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
11601160
ulong64 t1, t2;
11611161
unsigned long x, z;
11621162
int err, cipher_idx;
1163-
symmetric_key skey;
1163+
symmetric_ECB skey;
11641164

11651165
fprintf(stderr, "\nENC+MAC Timings (zero byte AAD, 16 byte IV, cycles/byte on %luKB blocks):\n", MAC_SIZE);
11661166

@@ -1239,7 +1239,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
12391239
}
12401240
fprintf(stderr, "CCM (no-precomp) \t%9"PRI64"u\n", t2/(ulong64)(MAC_SIZE*1024));
12411241

1242-
cipher_descriptor[cipher_idx].setup(key, 16, 0, &skey);
1242+
ecb_start(cipher_idx, key, 16, 0, &skey);
12431243
t2 = -1;
12441244
for (x = 0; x < 10000; x++) {
12451245
t_start();
@@ -1253,7 +1253,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
12531253
if (t1 < t2) t2 = t1;
12541254
}
12551255
fprintf(stderr, "CCM (precomp) \t\t%9"PRI64"u\n", t2/(ulong64)(MAC_SIZE*1024));
1256-
cipher_descriptor[cipher_idx].done(&skey);
1256+
ecb_done(&skey);
12571257
#endif
12581258

12591259
#ifdef LTC_GCM_MODE

0 commit comments

Comments
 (0)