-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nvs_flash): Remove the forceful selection of NVS_ENCRYPTION with …
…flash encryption - This change will introduce a breaking change for SoCs with the HMAC peripheral. Turning on flash encryption will no longer enable NVS encryption automatically. Closes #12549
- Loading branch information
1 parent
94d7ec7
commit ea51f4e
Showing
9 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
components/nvs_flash/test_apps/sdkconfig.ci.nvs_encr_hmac_no_cfg_esp32c3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Restricting to ESP32C3 | ||
CONFIG_IDF_TARGET="esp32c3" | ||
|
||
# NOTE: The runner for this test-app has flash-encryption enabled | ||
# Partition Table | ||
CONFIG_PARTITION_TABLE_CUSTOM=y | ||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_nvs_encr_flash_enc.csv" | ||
CONFIG_PARTITION_TABLE_FILENAME="partitions_nvs_encr_flash_enc.csv" | ||
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 | ||
|
||
# Disabling NVS encryption | ||
CONFIG_NVS_ENCRYPTION=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ Migration from 5.1 to 5.2 | |
gcc | ||
peripherals | ||
protocols | ||
storage | ||
system | ||
wifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Storage | ||
======= | ||
|
||
:link_to_translation:`zh_CN:[中文]` | ||
|
||
NVS Encryption | ||
-------------- | ||
|
||
- For SoCs with the HMAC peripheral (``SOC_HMAC_SUPPORTED``), turning on :doc:`Flash Encryption <../../../security/flash-encryption>` will no longer automatically turn on :doc:`NVS encryption <../../../api-reference/storage/nvs_encryption>`. | ||
- You will need to explicitly turn on NVS encryption and select the required scheme (flash encryption-based or HMAC peripheral-based). You can select the HMAC peripheral-based scheme (:ref:`CONFIG_NVS_SEC_KEY_PROTECTION_SCHEME`), even if flash encryption is not enabled. | ||
- SoCs without the HMAC peripheral will still automatically turn on NVS encryption when flash encryption is enabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
gcc | ||
peripherals | ||
protocols | ||
storage | ||
system | ||
wifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../../../../en/migration-guides/release-5.x/5.2/storage.rst |