Will partition with type 0x40 be encrypted when Flash Encryption is on?

tobewinner
Posts: 30
Joined: Thu Dec 10, 2015 5:27 am

Will partition with type 0x40 be encrypted when Flash Encryption is on?

Postby tobewinner » Wed Jul 12, 2017 10:33 am

If I add a partition(Type 0x40 subtype 0x00) with encrypted flag, will it be encrypted?
and if I turn on secure boot ,will it be checked before being used?

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

Re: Will partition with type 0x40 be encrypted when Flash Encryption is on?

Postby WiFive » Wed Jul 12, 2017 8:47 pm

Yes partitions with encryption flag set should be encrypted during initial encrypted boot process.

Secure boot will verify bootloader, bootloader will verify partition table and app. I believe otherwise you have to verify user partitions yourself.

Not sure of any issues for custom partition types.

tobewinner
Posts: 30
Joined: Thu Dec 10, 2015 5:27 am

Re: Will partition with type 0x40 be encrypted when Flash Encryption is on?

Postby tobewinner » Thu Jul 13, 2017 1:54 am

WiFive wrote:Yes partitions with encryption flag set should be encrypted during initial encrypted boot process.

Secure boot will verify bootloader, bootloader will verify partition table and app. I believe otherwise you have to verify user partitions yourself.

Not sure of any issues for custom partition types.
Thanks.
Here it writes: "The bootloader ignores any partition types other than app (0) & data (1)."
does it means that the bootloader will not verify partition other than partition table , app partitions and data partitions?

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

Re: Will partition with type 0x40 be encrypted when Flash Encryption is on?

Postby WiFive » Thu Jul 13, 2017 2:26 am

Yes I think so and there is also a difference between verify partition structure and verify partition signature. You can check source code of bootloader in IDF.

Who is online

Users browsing this forum: No registered users and 150 guests