cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.49k stars 430 forks source link

Feature Request: ESP32 with Flash Encryption and Secure Boot Feature Request #489

Open applecrusher opened 5 years ago

applecrusher commented 5 years ago

Encrypting the ESP32 is very easy with mongoose os with any build, whether is be custom or the default build using the command below:

mos -X esp32-gen-key flash_encryption_key fe.key --esp32-enable-flash-encryption --dry-run=false  
mos flash --esp32-encryption-key-file fe.key 

However, there doesn't seem to be support for secure boot when flashing with secure encryption. If this can be accomplished, how would this be so? If not, this would be a good feature to have.