improved calc_iclass_mac to work independant of size

This commit is contained in:
penturalabs committed 2014-05-02 23:30:03 +01:00
1 parent a66fca86b9
commit fe53c0311c
3 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -308,7 +308,7 @@ int CmdHFiClassReader_Dump(const char *Cmd)
hash0(crypted_id,div_key);
//memcpy(div_key,result,8);
PrintAndLog("Div Key: %s",sprint_hex(div_key,8));
calc_iclass_mac(CCNR,div_key,MAC);
calc_iclass_mac(CCNR,12,div_key,MAC);
UsbCommand c = {CMD_READER_ICLASS_REPLAY, {readerType}};
memcpy(c.d.asBytes, MAC, 4);