mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Merge branch 'test/parlio_flash_enc_test' into 'master'
test(parlio,rmt,lcd): add virtual flash encryption test Closes IDF-15064, IDF-15065, and IDF-15069 See merge request espressif/esp-idf!45006
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <bootloader_flash_priv.h>
|
||||
#include <esp_log.h>
|
||||
#include <esp_flash_encrypt.h>
|
||||
#include "esp_efuse.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "soc/soc_caps.h"
|
||||
#include "hal/efuse_ll.h"
|
||||
@@ -84,7 +84,7 @@ void bootloader_munmap(const void *mapping)
|
||||
|
||||
esp_err_t bootloader_flash_read(size_t src, void *dest, size_t size, bool allow_decrypt)
|
||||
{
|
||||
if (allow_decrypt && esp_flash_encryption_enabled()) {
|
||||
if (allow_decrypt && esp_efuse_is_flash_encryption_enabled()) {
|
||||
return esp_flash_read_encrypted(NULL, src, dest, size);
|
||||
} else {
|
||||
return esp_flash_read(NULL, dest, src, size);
|
||||
|
||||
Reference in New Issue
Block a user