feat: added support for pseudo round xts aes in esp32p4 eco5

This commit is contained in:
nilesh.kale
2025-10-13 16:52:17 +05:30
committed by Nilesh Kale
parent 08d3b8c9d3
commit f42e35bb68
4 changed files with 48 additions and 3 deletions

View File

@@ -214,6 +214,7 @@ void esp_flash_encryption_set_release_mode(void)
#endif // CONFIG_SOC_FLASH_ENCRYPTION_XTS_AES_128_DERIVED
#endif // !CONFIG_IDF_TARGET_ESP32
#if !(CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL < 300)
#ifdef SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = 0;
@@ -225,7 +226,7 @@ void esp_flash_encryption_set_release_mode(void)
}
}
#endif
#endif
#ifdef CONFIG_IDF_TARGET_ESP32
esp_efuse_write_field_bit(ESP_EFUSE_WR_DIS_DIS_CACHE);
#else
@@ -505,6 +506,7 @@ bool esp_flash_encryption_cfg_verify_release_mode(void)
}
#endif
#if !(CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL < 300)
#if SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = 0;
@@ -515,7 +517,7 @@ bool esp_flash_encryption_cfg_verify_release_mode(void)
}
}
#endif
#endif
return result;
}
#endif // not CONFIG_IDF_TARGET_ESP32