General Question about Flash Encryption

andreko
Posts: 12
Joined: Tue May 09, 2023 10:29 am

General Question about Flash Encryption

Postby andreko » Wed Jun 28, 2023 1:11 pm

Hi, just a general question about the usage of flash encryption. The documentation says
Flash encryption is intended for encrypting the contents of off-chip flash memory.

What does that exactly mean? Does it only make sense for an ESP chip that has a separate flash chip attached via SPI?
Or is it also necessary for ESP chips that have "internal" flash in a SiP configuration, like a ESP8684H4 for example?
I would guess that the latter is already protected by the package and the flash is not accessible from the outside.

What is the general recommendation here? Any thoughts or experience from the forum?

Thanks for all helpful feedback.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: General Question about Flash Encryption

Postby ESP_Sprite » Thu Jun 29, 2023 1:17 am

Yes, SiP is also included in 'off-chip' flash. Whether the packaging itself already is enough protection depends on your threat model, see e.g. here for a demonstration (on STM32 clone chips) where it might not be.

andreko
Posts: 12
Joined: Tue May 09, 2023 10:29 am

Re: General Question about Flash Encryption

Postby andreko » Fri Jun 30, 2023 1:35 pm

Thanks for the reply. OK I understand that there are ways to open the plastic package, but usually there would be no access to the SiP flash using normal pins I guess. But anyway a good point to maybe enable flash encryption for this scenario as well.

Who is online

Users browsing this forum: No registered users and 102 guests