Skip to content

Commit

Permalink
Update mf1_toolbox.c
Browse files Browse the repository at this point in the history
it's useful to reduce possible keys
  • Loading branch information
qiulie authored Sep 3, 2024
1 parent 8a797b8 commit 27fce89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/application/src/rfid/reader/hf/mf1_toolbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ static uint8_t nested_recover_core(mf1_nested_core_t *pnc, uint64_t keyKnown, ui
pnc->par |= ((oddparity8(answer[0]) != parity[0]) << 0);
pnc->par |= ((oddparity8(answer[1]) != parity[1]) << 1);
pnc->par |= ((oddparity8(answer[2]) != parity[2]) << 2);
pnc->par |= ((oddparity8(answer[3]) != parity[3]) << 3);
return STATUS_HF_TAG_OK;
}

Expand Down Expand Up @@ -1095,4 +1096,4 @@ uint16_t mf1_toolbox_check_keys_of_sectors (
}

return STATUS_HF_TAG_OK;
}
}

0 comments on commit 27fce89

Please sign in to comment.