forked from espressif/esp-idf
fix(esp_security): Fix build failure when dpa protection at startup is disabled
This commit is contained in:
@@ -16,10 +16,12 @@ static inline void esp_crypto_dpa_set_level(esp_crypto_dpa_sec_level_t level)
|
|||||||
REG_SET_FIELD(HP_SYSTEM_SEC_DPA_CONF_REG, HP_SYSTEM_SEC_DPA_LEVEL, level);
|
REG_SET_FIELD(HP_SYSTEM_SEC_DPA_CONF_REG, HP_SYSTEM_SEC_DPA_LEVEL, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_ESP_CRYPTO_DPA_PROTECTION_AT_STARTUP
|
||||||
void esp_crypto_dpa_protection_startup(void)
|
void esp_crypto_dpa_protection_startup(void)
|
||||||
{
|
{
|
||||||
esp_crypto_dpa_set_level(CONFIG_ESP_CRYPTO_DPA_PROTECTION_LEVEL);
|
esp_crypto_dpa_set_level(CONFIG_ESP_CRYPTO_DPA_PROTECTION_LEVEL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void esp_crypto_dpa_protection_enable(esp_crypto_dpa_sec_level_t level)
|
void esp_crypto_dpa_protection_enable(esp_crypto_dpa_sec_level_t level)
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
/* Private interface file */
|
/* Private interface file */
|
||||||
|
|
||||||
|
#if CONFIG_ESP_CRYPTO_DPA_PROTECTION_AT_STARTUP
|
||||||
void esp_crypto_dpa_protection_startup(void);
|
void esp_crypto_dpa_protection_startup(void);
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user