mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
CHG: removed old TRUE/FALSE defines... some left still..
This commit is contained in:
parent
86bbd8f563
commit
46a0ec7130
21 changed files with 66 additions and 67 deletions
|
@ -290,14 +290,14 @@ int mfCSetUID(uint8_t *uid, uint8_t *atqa, uint8_t *sak, uint8_t *oldUID, uint8_
|
|||
// UID
|
||||
memcpy(block0, uid, 4);
|
||||
// Mifare UID BCC
|
||||
block0[4] = block0[0]^block0[1]^block0[2]^block0[3];
|
||||
block0[4] = block0[0] ^ block0[1] ^ block0[2] ^ block0[3];
|
||||
// mifare classic SAK(byte 5) and ATQA(byte 6 and 7, reversed)
|
||||
if ( sak != NULL )
|
||||
block0[5]=sak[0];
|
||||
block0[5] = sak[0];
|
||||
|
||||
if ( atqa != NULL ) {
|
||||
block0[6]=atqa[1];
|
||||
block0[7]=atqa[0];
|
||||
block0[6] = atqa[1];
|
||||
block0[7] = atqa[0];
|
||||
}
|
||||
PrintAndLog("new block 0: %s", sprint_hex(block0,16));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue