From 80c846fd2570fe03887bb527501e91ae1385ebb4 Mon Sep 17 00:00:00 2001 From: jhchun Date: Fri, 17 Apr 2026 12:22:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=20AES=20=EB=B2=84?= =?UTF-8?q?=ED=8D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/ble_peripheral/ble_app_bladder_patch/main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/project/ble_peripheral/ble_app_bladder_patch/main.c b/project/ble_peripheral/ble_app_bladder_patch/main.c index 5cee1ad..bf1b5b2 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/main.c +++ b/project/ble_peripheral/ble_app_bladder_patch/main.c @@ -108,7 +108,6 @@ #endif /* -- Crypto / command parser / debug -- */ -#include "nrf_crypto.h" /* nRF crypto library (AES, etc.) */ #include "parser.h" /* Binary command parser (dr_cmd_parser) */ #include "cmd_table.h" /* Command table registration (cmd_table_init) */ #include "debug_print.h" /* Debug output macro (DBG_PRINTF) */ @@ -182,8 +181,6 @@ #define POWER_OFF_DELAY 3000 /* Power-off delay: 3s after LED indication */ #define POWER_RESET_DELAY 2000 /* Reset delay: 2s */ #define LED_NUM 24 /* LED pin number */ -#define AES_KEY_SIZE 16 /* AES encryption key size (128-bit) */ -#define AES_BLOCK_SIZE 16 /* AES block size (128-bit) */ /*============================================================================== * BLE Instances (statically allocated via SoftDevice macros) @@ -223,10 +220,6 @@ static char * roles_str[] = {"INVALID_ROLE", "CENTRAL", "PERIPHERAL"}; * Global Variables * IEC 62304 ยง5.5.3: all global buffers zero-initialized for deterministic startup *============================================================================*/ -uint8_t m_encrypted_text[AES_BLOCK_SIZE] = {0}; /* AES encryption result buffer */ -uint8_t m_encrypted_text2[AES_BLOCK_SIZE] = {0}; /* AES encryption result buffer 2 */ -uint8_t m_decrypted_text[AES_BLOCK_SIZE] = {0}; /* AES decryption result buffer */ - volatile uint8_t Sj_type; /* Command type identifier */ bool power_off_duble_prohibit = false; /* Power-off double prevention flag */ volatile bool power_state = false; /* Power state tracking */