From 83cb72fe8376f418d2a0549c3efd6944d1c249fa Mon Sep 17 00:00:00 2001 From: Sucareto <28331534+Sucareto@users.noreply.github.com> Date: Sun, 4 Jun 2023 12:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E5=88=A4=E6=96=AD=20Key=20A?= =?UTF-8?q?=20=E5=92=8C=20Key=20B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReaderCmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReaderCmd.h b/ReaderCmd.h index cc55ac4..0e68869 100644 --- a/ReaderCmd.h +++ b/ReaderCmd.h @@ -356,7 +356,7 @@ static void sg_nfc_cmd_aime_authenticate() { sg_res_init(); if (!digitalRead(SW3_CARD)) { uint8_t key_block_no = (req.block_no / 4) * 4 + 3; - if (memcmp(AimeKey, mifare_data[key_block_no], 6)) { + if (memcmp(AimeKey, mifare_data[key_block_no] + 10, 6)) { // Key B res.status = 1; } return;