From 27fce89dfd5b8ee6f3378995b8a223a82caddb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=91=E9=AD=85=E9=AD=8D=E9=AD=89?= <20321587@qq.com> Date: Tue, 3 Sep 2024 21:52:31 +0800 Subject: [PATCH] Update mf1_toolbox.c it's useful to reduce possible keys --- firmware/application/src/rfid/reader/hf/mf1_toolbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/application/src/rfid/reader/hf/mf1_toolbox.c b/firmware/application/src/rfid/reader/hf/mf1_toolbox.c index 32e2bf4d..4a3ed6ad 100644 --- a/firmware/application/src/rfid/reader/hf/mf1_toolbox.c +++ b/firmware/application/src/rfid/reader/hf/mf1_toolbox.c @@ -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; } @@ -1095,4 +1096,4 @@ uint16_t mf1_toolbox_check_keys_of_sectors ( } return STATUS_HF_TAG_OK; -} \ No newline at end of file +}