Is writing to /flash
when flash encryption enabled secure? (3rd party port)
#17474
Replies: 1 comment 11 replies
-
The layout of the flash is defined in the partition files. For GPY you find them at esp32/boards/GPY. They are called script_8MB and script_8MB_enc. These tell you, that the file system in the flash memory starts at the 4MB boundary, address 0x400000. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am working with a long-obsolete board (PyCom GPY) which has its own port: https://github.com/pycom/pycom-micropython-sigfox/tree/a37510c092bcec00671c924accb97dcdfa2f4b5d
Its forums have long shut down, so there is nowhere to ask, hoping for a second round of luck here.
This will most likely be a stupid question, but here we go.
I have enabled both secure boot and flash encryption on my GPY device. However, I am trying to figure out if I am writing my certificates to an encrypted flash area (i.e. one that no one can decrypt without knowing the correct encryption keys). (the reason I need to know if this flash area is encrypted or not is because I was asked to provide that detail in a follow-up to an online topic I posted: https://esp32.com/viewtopic.php?t=45800).
Basically, with secure boot and flash encryption enabled, I am writing sensitive keys used for a server connection to the path
/flash/keys
, wherekeys
is a directory and each key is stored in plain text.I am not sure if
/flash
is where the filesystem is typically mounted on MicroPython ports, but on the port I am using (from Pycom),keys
and/flash/keys
(as os paths) are equivalent, i.e. point to the same location.I've tried to look at PyCom's source code to figure out where
/flash
points to, to see if it is covered by flash encryption or not. But no luck.Is it possible I could recieve some guidance from here? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions