Page 1 of 1

Flash encryption and Partition

Posted: Tue Sep 24, 2019 1:10 am
by Seungwhan
Hi,

Let's say we enabled the flash encryption functionality.(parity of efuse_crypt_cnt is odd. Flash contents will be automatically decrypted upon running.)
Now is there a way we don't encrypt the app partition and will be able to run the app?

I figured that there is spi_flash_read().
Will it let me achieve what I try to achieve?
Or is it just for data? not code?

I know the vulnerability of not encrypting the app partition.
We have other measure for that.
Just want to know if what I am asking is possible.

Thank you so much as always!

Re: Flash encryption and Partition

Posted: Tue Sep 24, 2019 2:49 am
by WiFive
No, the code is mmapped to the instruction bus through the flash cache which uses the hardware decryption block.