Flash Encryption + Secure Boot V2

ferrero
Posts: 18
Joined: Tue Nov 05, 2024 3:11 am

Flash Encryption + Secure Boot V2

Postby ferrero » Mon Feb 10, 2025 9:06 am

Can anyone tell me how the two methods will initially work together.

When i building the project with Flash Encryption + Secure Boot V2, it will be signed with the manually generated private key. Then the unencrypted firmware with sign gets into memory, generate encrypt key and is encrypted there, after which it is restarted. How will Secure Boot v2 work in this case now if it was signed for UNENCRYPTED firmware, but now it is encrypted data in memory? Or first the decryption occurs and then the signature is verified?

And it turns out that if I need to encrypt the firmware remotely, then first I need to sign it and then encrypt it, but not the other way around?

Thanks!

ferrero
Posts: 18
Joined: Tue Nov 05, 2024 3:11 am

Re: Flash Encryption + Secure Boot V2

Postby ferrero » Wed Feb 12, 2025 1:18 am

Here is some usefull info about this topic https://docs.espressif.com/projects/esp ... flows.html

Who is online

Users browsing this forum: No registered users and 129 guests