Skip to content

Commit 3c42b6a

Browse files
committed
fix timing demo
1 parent 06adf52 commit 3c42b6a

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
@@ -1163,7 +1163,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
11631163
ulong64 t1, t2;
11641164
unsigned long x, z;
11651165
int err, cipher_idx;
1166-
symmetric_key skey;
1166+
symmetric_ECB skey;
11671167

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

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

1245-
cipher_descriptor[cipher_idx].setup(key, 16, 0, &skey);
1245+
ecb_start(cipher_idx, key, 16, 0, &skey);
12461246
t2 = -1;
12471247
for (x = 0; x < 10000; x++) {
12481248
t_start();
@@ -1256,7 +1256,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
12561256
if (t1 < t2) t2 = t1;
12571257
}
12581258
fprintf(stderr, "CCM (precomp) \t\t%9"PRI64"u\n", t2/(ulong64)(MAC_SIZE*1024));
1259-
cipher_descriptor[cipher_idx].done(&skey);
1259+
ecb_done(&skey);
12601260
#endif
12611261

12621262
#ifdef LTC_GCM_MODE

0 commit comments

Comments
 (0)