mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
added next nt checks
This commit is contained in:
parent
37e36ab283
commit
25c8aaf411
1 changed files with 5 additions and 2 deletions
|
@ -871,8 +871,11 @@ int mfTraceDecode(uint8_t *data_src, int len, uint8_t parity, bool wantSaveToEml
|
||||||
|
|
||||||
bool check = false;
|
bool check = false;
|
||||||
check = oddparity8(nt1 >> 8 & 0xff) ^ (nt1 & 0x01) ^ ((nt_enc_par >> 5) & 0x01) ^ (nt_enc & 0x01);
|
check = oddparity8(nt1 >> 8 & 0xff) ^ (nt1 & 0x01) ^ ((nt_enc_par >> 5) & 0x01) ^ (nt_enc & 0x01);
|
||||||
if (check)
|
if (check) printf("check1 error\n");
|
||||||
printf("check1 error\n");
|
check = oddparity8(nt1 >> 16 & 0xff) ^ (nt1 >> 8 & 0x01) ^ ((nt_enc_par >> 6) & 0x01) ^ (nt_enc >> 8 & 0x01);
|
||||||
|
if (check) printf("check2 error\n");
|
||||||
|
check = oddparity8(nt1 >> 24 & 0xff) ^ (nt1 >> 16 & 0x01) ^ ((nt_enc_par >> 7) & 0x01) ^ (nt_enc >> 16 & 0x01);
|
||||||
|
if (check) printf("check3 error\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue