2023-03-01 02:21:55 -05:00
|
|
|
# Restricting to ESP32C3
|
|
|
|
CONFIG_IDF_TARGET="esp32c3"
|
|
|
|
|
2023-04-16 02:11:11 -04:00
|
|
|
# NOTE: The runner for this test-app has flash-encryption enabled
|
2023-03-01 02:21:55 -05:00
|
|
|
# Partition Table
|
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
2023-04-16 02:11:11 -04:00
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_nvs_encr_flash_enc.csv"
|
|
|
|
CONFIG_PARTITION_TABLE_FILENAME="partitions_nvs_encr_flash_enc.csv"
|
2023-03-01 02:21:55 -05:00
|
|
|
CONFIG_PARTITION_TABLE_OFFSET=0x9000
|
|
|
|
|
|
|
|
# Enabling Flash Encryption
|
|
|
|
CONFIG_SECURE_FLASH_ENC_ENABLED=y
|
|
|
|
CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT=y
|
|
|
|
CONFIG_SECURE_BOOT_ALLOW_ROM_BASIC=y
|
|
|
|
CONFIG_SECURE_BOOT_ALLOW_JTAG=y
|
|
|
|
CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC=y
|
|
|
|
CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_DEC=y
|
|
|
|
CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_CACHE=y
|
|
|
|
CONFIG_SECURE_FLASH_REQUIRE_ALREADY_ENABLED=y
|
2023-04-16 02:11:11 -04:00
|
|
|
|
|
|
|
# Enabling NVS Encryption (HMAC-based scheme)
|
|
|
|
CONFIG_NVS_ENCRYPTION=y
|
|
|
|
CONFIG_NVS_SEC_KEY_PROTECT_USING_HMAC=y
|
|
|
|
CONFIG_NVS_SEC_HMAC_EFUSE_KEY_ID=0
|