@@ -23,7 +23,8 @@ OTA_MODE options:-
23
23
24
24
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/
25
25
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
27
28
28
29
espsecure.py encrypt_flash_data = runs the idf encryption function to make a encrypted output file from a source file
29
30
-k text = path/filename to the AES 256bit(32byte) encryption key file
@@ -54,7 +55,6 @@ const char* host = "esp32-web";
54
55
const char * ssid = " wifi-ssid" ;
55
56
const char * password = " wifi-password" ;
56
57
57
-
58
58
const uint8_t OTA_KEY[32 ] = { 0x30 , 0x31 , 0x32 , 0x33 , 0x34 , 0x35 , 0x36 , 0x37 , \
59
59
0x38 , 0x39 , 0x20 , 0x74 , 0x68 , 0x69 , 0x73 , 0x20 , \
60
60
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',
68
68
*/
69
69
70
70
// const uint8_t OTA_KEY[33] = "0123456789 this a simpletest key";
71
-
71
+
72
72
const uint32_t OTA_ADDRESS = 0x00654320 ; // OTA_ADDRESS value has no effect when OTA_CFG = 0x00
73
73
const uint32_t OTA_CFG = 0x0f ;
74
74
const uint32_t OTA_MODE = U_AES_DECRYPT_AUTO;
0 commit comments