From 1eaa8288a2fc0598809d58ca188f56bc4fe406af Mon Sep 17 00:00:00 2001 From: "nilesh.kale" Date: Thu, 27 Jun 2024 10:41:38 +0530 Subject: [PATCH] feat: enable DPA protection for c5 This commit enabled DPA protection for ESP32C5. This reflect updating documentation for C5. --- components/soc/esp32c5/include/soc/Kconfig.soc_caps.in | 4 ++++ components/soc/esp32c5/include/soc/soc_caps.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in index 62b05f280d..57fb90b004 100644 --- a/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c5/include/soc/Kconfig.soc_caps.in @@ -839,6 +839,10 @@ config SOC_FLASH_ENCRYPTION_XTS_AES_128 bool default y +config SOC_CRYPTO_DPA_PROTECTION_SUPPORTED + bool + default y + config SOC_UART_NUM int default 3 diff --git a/components/soc/esp32c5/include/soc/soc_caps.h b/components/soc/esp32c5/include/soc/soc_caps.h index 9ae9117a5c..5382b59e2c 100644 --- a/components/soc/esp32c5/include/soc/soc_caps.h +++ b/components/soc/esp32c5/include/soc/soc_caps.h @@ -482,7 +482,7 @@ #define SOC_FLASH_ENCRYPTION_XTS_AES_128 1 /*------------------------ Anti DPA (Security) CAPS --------------------------*/ -// #define SOC_CRYPTO_DPA_PROTECTION_SUPPORTED 1 +#define SOC_CRYPTO_DPA_PROTECTION_SUPPORTED 1 /*-------------------------- UART CAPS ---------------------------------------*/ // ESP32-C5 has 3 UARTs (2 HP UART, and 1 LP UART)