Flash encryption and Partition

Seungwhan
Posts: 19
Joined: Mon Jul 29, 2019 11:23 pm

Flash encryption and Partition

Postby Seungwhan » Tue Sep 24, 2019 1:10 am

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!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Flash encryption and Partition

Postby WiFive » Tue Sep 24, 2019 2:49 am

No, the code is mmapped to the instruction bus through the flash cache which uses the hardware decryption block.

Who is online

Users browsing this forum: No registered users and 127 guests