Skip to content

Commit 2733eae

Browse files
committed
fix timing demo
1 parent 4eeeafb commit 2733eae

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
@@ -1154,7 +1154,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
11541154
ulong64 t1, t2;
11551155
unsigned long x, z;
11561156
int err, cipher_idx;
1157-
symmetric_key skey;
1157+
symmetric_ECB skey;
11581158

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

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

1236-
cipher_descriptor[cipher_idx].setup(key, 16, 0, &skey);
1236+
ecb_start(cipher_idx, key, 16, 0, &skey);
12371237
t2 = -1;
12381238
for (x = 0; x < 10000; x++) {
12391239
t_start();
@@ -1247,7 +1247,7 @@ static void time_encmacs_(unsigned long MAC_SIZE)
12471247
if (t1 < t2) t2 = t1;
12481248
}
12491249
fprintf(stderr, "CCM (precomp) \t\t%9"PRI64"u\n", t2/(ulong64)(MAC_SIZE*1024));
1250-
cipher_descriptor[cipher_idx].done(&skey);
1250+
ecb_done(&skey);
12511251
#endif
12521252

12531253
#ifdef LTC_GCM_MODE

0 commit comments

Comments
 (0)