미사용 AES 버퍼 삭제

This commit is contained in:
2026-04-17 12:22:28 +09:00
parent 2daa8b3690
commit 80c846fd25

View File

@@ -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 */