feat(examples/security): Extend flash_encryption example with fatfs encryption

Updated the flash_encryption example to demonstrate the usage of fatfs encryption.
Updated existing test case to ensure accurate and reliable testing.
Documentation of storage section extended by security relarted summary.

Closes https://github.com/espressif/esp-idf/issues/11551
Closes https://github.com/espressif/esp-idf/issues/13668
This commit is contained in:
radek.tandler
2023-12-06 17:25:58 +01:00
committed by BOT
parent 9e16b45dac
commit 68df525394
12 changed files with 608 additions and 58 deletions

View File

@@ -53,6 +53,12 @@ def _test_flash_encryption(dut: Dut) -> None:
plain_hex_str,
'with esp_flash_read',
expected_str,
'FAT partition "fat_not_encr" is not encrypted.',
'Read partition using esp_flash_read until test string is found',
'Test string was found at offset',
'FAT partition "fat_encrypted" is encrypted.',
'Read partition using esp_flash_read at expected offset',
'Data does not match test string',
# The status of NVS encryption for the "nvs" partition
'NVS partition "nvs" is encrypted.',
# The status of NVS encryption for the "custom_nvs" partition