Skip to content

Commit 2cd953a

Browse files
committed
Format example
1 parent d375716 commit 2cd953a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Update/examples/HTTP_Server_AES_OTA_Update/HTTP_Server_AES_OTA_Update.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ OTA_MODE options:-
2323
2424
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/
2525
26-
espsecure.py encrypt_flash_data -k ota_key.bin --flash_crypt_conf 0xf -a 0x1000 -o output_filename.bin source_filename.bin
26+
Example:
27+
espsecure.py encrypt_flash_data -k ota_key.bin --flash_crypt_conf 0xf -a 0x00654320 -o output_filename.bin source_filename.bin
2728
2829
espsecure.py encrypt_flash_data = runs the idf encryption function to make a encrypted output file from a source file
2930
-k text = path/filename to the AES 256bit(32byte) encryption key file
@@ -54,7 +55,6 @@ const char* host = "esp32-web";
5455
const char* ssid = "wifi-ssid";
5556
const char* password = "wifi-password";
5657

57-
5858
const uint8_t OTA_KEY[32] = { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, \
5959
0x38, 0x39, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, \
6060
0x61, 0x20, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, \
@@ -68,7 +68,7 @@ const uint8_t OTA_KEY[32] = {'0', '1', '2', '3', '4', '5', '6', '7',
6868
*/
6969

7070
//const uint8_t OTA_KEY[33] = "0123456789 this a simpletest key";
71-
71+
7272
const uint32_t OTA_ADDRESS = 0x00654320; //OTA_ADDRESS value has no effect when OTA_CFG = 0x00
7373
const uint32_t OTA_CFG = 0x0f;
7474
const uint32_t OTA_MODE = U_AES_DECRYPT_AUTO;

0 commit comments

Comments
 (0)