Closed WangShuoran closed 1 year ago
@WangShuoran
Following example shows initialization of default as well as custom NVS partition with encryption enabled case:
@mahavirj Thank you for your quickly reply. If I want to use pre-generated key partition and Flash encrypted, How to use pre-generated key partition tools and Flash encrypted?
In the detail, I have the following questions:
以下是中文,中文是我的母语:
Hello, @WangShuoran!
CC: @mahavirj
Hello, @laukik-hase ! Thank you for your quickly reply. So, if I want to burn the encrypted data to the ESP32, I need to burning the key of NVS and encrypted data to the patition. Is this right?
And I am what to use Flash encryption function in ESP32, If I what to use spiffs and before Flash encryption burning, does the spiffs partition can auto encryption?
Hello, @WangShuoran!
littleFS
or NVS as an alternative.Hello, @laukik-hase ! Thank you for your quickly reply. Now, I find the CONFIG_SECURE_UART_ROM_DL_MODE menuconfig to setting UART Secure Download mode(SECURE_ENABLE_SECURE_ROM_DL_MODE). https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32s3/api-reference/kconfig.html#config-secure-uart-rom-dl-mode
How do I Flash APP BIN file with this config. Does I need to use Pre burn key to encrypted the BIN file? Or only burn the unencrypted BIN file? But the plaintext BIN file is prohibit in DIS_DOWNLOAD_MANUAL_ENCRYPT. I do not know how to burn BIN file.
Hello, @laukik-hase ! I find the ESP-IOT-SOLUTION VFS page, it tell me the FAT can use encryption, how to use it? I can not find the doc the achieve it.
And I find the info about the spiffs encrypt, the answer almost use the spiffs encrypted. https://github.com/espressif/esp-idf/issues/5139
Hello, @WangShuoran!
Sorry for the late response. FatFs does support encryption - the image will be encrypted by the bootloader during the first boot when the flash encryption process starts. To enable the same, you must add the encrypted
flag in your example partition table for the FatFS partition.
We will soon be adding an example for the storage with flash encryption use-case. I am closing this ticket as NVS related questions have been answered here. Thanks.
@mahavirj Where is the example?
Answers checklist.
General issue report
Is there a tutorial on how to match NVS multi partition and NVS encrypted partition?
My requirement is that multiple partitions of NVS can be encrypted (even if they all use the same key).
By the way, in the NVS document, is it recommended that we not store data to the default NVS partition, but use a new NVS to store persistence data.