change(esp_security): Move anti-DPA configuration into the security component

This commit is contained in:
harshal.patil 2024-07-08 15:09:03 +05:30 committed by Mahavir Jain
parent b729a0a732
commit c125d21c71
4 changed files with 10 additions and 4 deletions

View File

@ -119,10 +119,6 @@ if(NOT BOOTLOADER_BUILD)
list(APPEND srcs "esp_etm.c")
endif()
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
list(APPEND srcs "esp_dpa_protection.c")
endif()
if(CONFIG_SOC_DIG_SIGN_SUPPORTED)
list(APPEND srcs "esp_ds.c")
endif()

View File

@ -6,9 +6,19 @@ if(NOT BOOTLOADER_BUILD)
list(APPEND srcs "src/crypto/${IDF_TARGET}/clk.c")
endif()
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
list(APPEND srcs "src/crypto/esp_dpa_protection.c")
endif()
list(APPEND priv_requires "soc")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
PRIV_REQUIRES ${priv_requires})
if(NOT BOOTLOADER_BUILD)
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
target_link_libraries(${COMPONENT_LIB} PRIVATE "-u esp_crypto_dpa_prot_include_impl")
endif()
endif()