Skip to content

Commit 67ca1c0

Browse files
committed
fix for compilation with LTC_DEBUG
1 parent d936273 commit 67ca1c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mac/blake2/blake2bmac_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ int blake2bmac_test(void)
295295
blake2bmac_process(&st, (unsigned char*)inp + 14, 1);
296296
blake2bmac_process(&st, (unsigned char*)inp + 15, ilen - 15);
297297
blake2bmac_done(&st, out, &olen);
298-
if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", i) != 0) return CRYPT_FAIL_TESTVECTOR;
298+
if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", ilen) != 0) return CRYPT_FAIL_TESTVECTOR;
299299
}
300300
/* process in one go */
301301
blake2bmac_init(&st, olen, key, klen);
302302
blake2bmac_process(&st, (unsigned char*)inp, ilen);
303303
blake2bmac_done(&st, out, &olen);
304-
if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", i) != 0) return CRYPT_FAIL_TESTVECTOR;
304+
if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", ilen) != 0) return CRYPT_FAIL_TESTVECTOR;
305305
}
306306
return CRYPT_OK;
307307
#endif

src/mac/blake2/blake2smac_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ int blake2smac_test(void)
295295
blake2smac_process(&st, (unsigned char*)inp + 14, 1);
296296
blake2smac_process(&st, (unsigned char*)inp + 15, ilen - 15);
297297
blake2smac_done(&st, out, &olen);
298-
if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", i) != 0) return CRYPT_FAIL_TESTVECTOR;
298+
if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", ilen) != 0) return CRYPT_FAIL_TESTVECTOR;
299299
}
300300
/* process in one go */
301301
blake2smac_init(&st, olen, key, klen);
302302
blake2smac_process(&st, (unsigned char*)inp, ilen);
303303
blake2smac_done(&st, out, &olen);
304-
if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", i) != 0) return CRYPT_FAIL_TESTVECTOR;
304+
if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", ilen) != 0) return CRYPT_FAIL_TESTVECTOR;
305305
}
306306
return CRYPT_OK;
307307
#endif

0 commit comments

Comments
 (0)