Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official support for encrypted flash #642

Open
ost-ing opened this issue May 27, 2024 · 0 comments
Open

Official support for encrypted flash #642

ost-ing opened this issue May 27, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ost-ing
Copy link

ost-ing commented May 27, 2024

After a lengthy discussion on matrix, it seems that there is no official statement about how to get encrypted flash to work with espflash, aside from this guide which I was unable to get to work.

My experience using the above guide in Development Mode after many attempts was that I would receive a Invalid Header XXXX error, which according to the docs indicates that plain text is being flashed (its not being encrypted internally by the esp32).

The guide falls short about explaining if partition tables between the bootloader app, and the rust app, need to be identical along with other security kconfig settings (which I have experimented with).

Having a look at esptool.py, there is an additional --encrypt flag passed, which leads me to believe perhaps espflash needs to send a flag to the device to tell it to encrypt the data.

Digging into the code a little there is a conditional for stub and chip, I've tried variations on these to see if I could get it to work, but it hasn't.

Any assistance here is appreciated, it would be great if there were an official statement on if this should be working, along with a detailed (and maintained) guide.

@SergioGasquez SergioGasquez added the help wanted Extra attention is needed label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

2 participants