xtensa/esp32: encrypted MTD for partition offset
Non-encrypted mtd can not be used for encrypted device. Even without SPI Flash encryption, encrypted MTD also can be used to read no-encrypted data.
This commit is contained in:
parent
993741f36e
commit
1c7d81881c
2 changed files with 2 additions and 2 deletions
|
@ -778,7 +778,7 @@ static int partition_get_offset(const char *label, size_t size)
|
|||
int partion_offset;
|
||||
const struct partition_info_priv *info;
|
||||
DEBUGASSERT(label != NULL);
|
||||
struct mtd_dev_s *mtd = esp32_spiflash_get_mtd();
|
||||
struct mtd_dev_s *mtd = esp32_spiflash_encrypt_get_mtd();
|
||||
if (!mtd)
|
||||
{
|
||||
ferr("ERROR: Failed to get SPI flash MTD\n");
|
||||
|
|
|
@ -648,7 +648,7 @@ static int partition_get_offset(const char *label, size_t size)
|
|||
int partion_offset;
|
||||
const struct partition_info_priv_s *info;
|
||||
DEBUGASSERT(label != NULL);
|
||||
struct mtd_dev_s *mtd = esp32s3_spiflash_mtd();
|
||||
struct mtd_dev_s *mtd = esp32s3_spiflash_encrypt_mtd();
|
||||
if (!mtd)
|
||||
{
|
||||
ferr("ERROR: Failed to get SPI flash MTD\n");
|
||||
|
|
Loading…
Reference in a new issue