From 37e36ab283275a08ce51f28f9533f1d0060f157d Mon Sep 17 00:00:00 2001 From: merlokk Date: Fri, 2 Feb 2018 22:36:18 +0200 Subject: [PATCH] check 1st byte nt. works) --- client/mifarehost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mifarehost.c b/client/mifarehost.c index d0474916..960ebe7d 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -870,7 +870,7 @@ int mfTraceDecode(uint8_t *data_src, int len, uint8_t parity, bool wantSaveToEml printf("key> nr1: %08x ar1: %08x at1: %08x nt_parity: %s\n", nr1, ar1, at1, printBitsPar(&nt_enc_par, 4)); bool check = false; - check = oddparity8(nt1 >> 8 & 0xff) ^ (nt1 & 0x01) ^ ((nt_enc_par >> 6) & 0x01) ^ (nt_enc & 0x01); + check = oddparity8(nt1 >> 8 & 0xff) ^ (nt1 & 0x01) ^ ((nt_enc_par >> 5) & 0x01) ^ (nt_enc & 0x01); if (check) printf("check1 error\n");