Rename abtUid from struct mifare_param_auth into abtAuthUid: this is not the UID while using 7-bytes UID MIFARE Classic tags.
This commit is contained in:
parent
c973800164
commit
ce443d50ca
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ typedef enum {
|
||||||
// MIFARE command params
|
// MIFARE command params
|
||||||
struct mifare_param_auth {
|
struct mifare_param_auth {
|
||||||
uint8_t abtKey[6];
|
uint8_t abtKey[6];
|
||||||
uint8_t abtUid[4];
|
uint8_t abtAuthUid[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mifare_param_data {
|
struct mifare_param_data {
|
||||||
|
|
|
@ -175,7 +175,7 @@ authenticate(uint32_t uiBlock)
|
||||||
size_t key_index;
|
size_t key_index;
|
||||||
|
|
||||||
// Set the authentication information (uid)
|
// Set the authentication information (uid)
|
||||||
memcpy(mp.mpa.abtUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
|
memcpy(mp.mpa.abtAuthUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
|
||||||
|
|
||||||
// Should we use key A or B?
|
// Should we use key A or B?
|
||||||
mc = (bUseKeyA) ? MC_AUTH_A : MC_AUTH_B;
|
mc = (bUseKeyA) ? MC_AUTH_A : MC_AUTH_B;
|
||||||
|
|
Loading…
Add table
Reference in a new issue