mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
less hardcoded sizes and more ARRAYLEN
This commit is contained in:
parent
74288ad128
commit
f276dca3f1
16 changed files with 43 additions and 53 deletions
|
@ -1126,7 +1126,7 @@ bool DecodeMifareData(uint8_t *cmd, uint8_t cmdsize, uint8_t *parity, bool isRes
|
|||
|
||||
// check default keys
|
||||
if (!traceCrypto1) {
|
||||
for (int i = 0; i < MIFARE_DEFAULTKEYS_SIZE; i++) {
|
||||
for (int i = 0; i < ARRAYLEN(g_mifare_default_keys); i++) {
|
||||
if (NestedCheckKey(g_mifare_default_keys[i], &AuthData, cmd, cmdsize, parity)) {
|
||||
PrintAndLogEx(NORMAL, " | | * |%61s %012"PRIx64"| |", "key", g_mifare_default_keys[i]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue