mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
improved calc_iclass_mac to work independant of size
This commit is contained in:
parent
a66fca86b9
commit
fe53c0311c
3 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue