mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(esp_security/esp_key_mgr): Recharge HUK before the first usage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "soc/soc_caps.h"
|
||||
|
||||
#if SOC_KEY_MANAGER_SUPPORTED
|
||||
#if SOC_HUK_SUPPORTED
|
||||
#include "hal/huk_types.h"
|
||||
#include <stdint.h>
|
||||
#include "esp_err.h"
|
||||
@@ -51,6 +51,13 @@ uint8_t huk_hal_get_risk_level(void);
|
||||
*/
|
||||
uint32_t huk_hal_get_date_info(void);
|
||||
|
||||
#if SOC_HUK_MEM_NEEDS_RECHARGE
|
||||
/**
|
||||
* @brief Recharge HUK memory
|
||||
*/
|
||||
void huk_hal_recharge_huk_memory(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user