236
243
noekeon_ecb_encrypt(tests[i].pt, tmp[0], &key);
237
244
noekeon_ecb_decrypt(tmp[0], tmp[1], &key);
238
if (memcmp(tmp[0], tests[i].ct, 16) || memcmp(tmp[1], tests[i].pt, 16)) {
245
if (XMEMCMP(tmp[0], tests[i].ct, 16) || XMEMCMP(tmp[1], tests[i].pt, 16)) {
240
247
printf("\n\nTest %d failed\n", i);
243
250
for (i = 0; i < 16; i++) {
244
251
printf("%02x ", tmp[0][i]);