apply a patch suggested by Valentijn Sessink. See Issue 56.
This commit is contained in:
parent
d1c676b01d
commit
1c2ff2b263
1 changed files with 11 additions and 0 deletions
11
src/mfoc.c
11
src/mfoc.c
|
@ -788,6 +788,17 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Finally we want to send arbitrary parity bits
|
||||||
|
if (!nfc_configure(r.pdi, NDO_HANDLE_PARITY, true)) {
|
||||||
|
nfc_perror (r.pdi, "nfc_configure parity restore M");
|
||||||
|
exit (EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, true)) {
|
||||||
|
nfc_perror (r.pdi, "nfc_configure crc restore M");
|
||||||
|
exit (EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
// Save the encrypted nonce
|
// Save the encrypted nonce
|
||||||
NtEnc = bytes_to_num(Rx, 4);
|
NtEnc = bytes_to_num(Rx, 4);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue