mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
Update cmdhfmfdes.c
use defines for command 0xc4
This commit is contained in:
parent
c731c945d6
commit
0c71b6cc32
1 changed files with 1 additions and 1 deletions
|
@ -1260,7 +1260,7 @@ static int mifare_desfire_change_key(uint8_t key_no, uint8_t *new_key, uint8_t n
|
||||||
// C4 01 A0B08090E0F0C0D02030001060704050 03
|
// C4 01 A0B08090E0F0C0D02030001060704050 03
|
||||||
// 19 bytes
|
// 19 bytes
|
||||||
//uint8_t csPkt[30] = {0x00};
|
//uint8_t csPkt[30] = {0x00};
|
||||||
csPkt[0] = 0xC4;
|
csPkt[0] = MFDES_CHANGE_KEY;
|
||||||
memcpy(&csPkt[1], data, 18);
|
memcpy(&csPkt[1], data, 18);
|
||||||
|
|
||||||
desfire_crc32(csPkt, 19, data + 1 + cmdcnt);
|
desfire_crc32(csPkt, 19, data + 1 + cmdcnt);
|
||||||
|
|
Loading…
Reference in a new issue