fix: 'hf iclass loclass' - remove warning on gcc4.9.2 mingw.

don't like the declaration.   mbedtls_des_context ctx_dec = {0};
chg: 'hf iclass loclass t' - added some path tests for key file.
This commit is contained in:
Chris
2018-11-14 15:11:30 +01:00
parent e4cb74fedb
commit 526f50aa9d
4 changed files with 60 additions and 64 deletions

View File

@@ -275,18 +275,14 @@ int testMAC()
uint8_t calculated_mac[4] = {0};
doMAC(cc_nr,div_key, calculated_mac);
if(memcmp(calculated_mac, correct_MAC,4) == 0)
{
if (memcmp(calculated_mac, correct_MAC,4) == 0) {
PrintAndLogDevice(SUCCESS, "MAC calculation OK!");
}else
{
} else {
PrintAndLogDevice(FAILED, "FAILED: MAC calculation failed:");
printarr(" Calculated_MAC", calculated_mac, 4);
printarr(" Correct_MAC ", correct_MAC, 4);
return 1;
}
return 1;
}
return 0;
}
#endif