adafruit / tinyuf2

UF2 bootloader based on TinyUSB for embedded devices such as ESP32S2, STM32F4 and iMX RT10xx
MIT License
314 stars 172 forks source link

Support encryption payload in uf2 file #270

Open howard0su opened 1 year ago

howard0su commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to encrypt uf2 file with AES128/256 encryption method so that nobody is able to disassembly the file.

Describe the solution you'd like Add code logic to support uf2 file with some extension flags which indicated the firmware is encrypted and need run decrypt before flash it.

mickeydarrenlau commented 1 year ago

Then where to put the keys

ccrome commented 1 year ago

Definitely something I'm interested in too.

for the i.MX RT family, there are two different encryption schemes depending on which member of the family -- BEE and OTFAD. Unfortunately at the moment, I don't know much more about it ;-)

hathach commented 1 year ago

Before discussing the implementation, I would suggest to bring this discussion to https://github.com/microsoft/uf2 for the author to make it into the specs first. E.g adding new flag for encrypted method/key etc..