Skip to content

Commit

Permalink
Support NVS encryption without flash encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
dbahrdt authored Jun 3, 2024
2 parents 56f016e + 1dcce77 commit 9afa640
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion components/nvs_flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ menu "NVS"

config NVS_ENCRYPTION
bool "Enable NVS encryption"
depends on SECURE_FLASH_ENC_ENABLED || SOC_HMAC_SUPPORTED
default y if SECURE_FLASH_ENC_ENABLED
default n if !SECURE_FLASH_ENC_ENABLED
help
This option enables encryption for NVS. When enabled, XTS-AES is used to encrypt
the complete NVS data, except the page headers. It requires XTS encryption keys
Expand Down
1 change: 0 additions & 1 deletion components/nvs_sec_provider/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ menu "NVS Security Provider"

config NVS_SEC_KEY_PROTECT_USING_FLASH_ENC
bool "Using Flash Encryption"
depends on SECURE_FLASH_ENC_ENABLED
help
Protect the NVS Encryption Keys using Flash Encryption
Requires a separate 'nvs_keys' partition (which will be encrypted by flash encryption)
Expand Down

0 comments on commit 9afa640

Please sign in to comment.