307
315
rc2_ecb_encrypt(tests[x].pt, tmp[0], &skey);
308
316
rc2_ecb_decrypt(tmp[0], tmp[1], &skey);
310
if (memcmp(tmp[0], tests[x].ct, 8) != 0 || memcmp(tmp[1], tests[x].pt, 8) != 0) {
318
if (XMEMCMP(tmp[0], tests[x].ct, 8) != 0 || XMEMCMP(tmp[1], tests[x].pt, 8) != 0) {
311
319
return CRYPT_FAIL_TESTVECTOR;