esp-idf/components/bootloader_support/include
Mahavir Jain 6d2153d703 fix(ota): additional checks for secure version in anti-rollback case
Some additional checks related to secure version of the application in
anti-rollback case have been added to avoid any attempts to boot lower
security version but valid application (e.g., passive partition image).

- Read secure_version under sha256 protection

- First check has been added in the bootloader to ensure correct secure
  version after application verification and loading stage. This check
  happens before setting up the flash cache mapping and handling over
  the final control to application. This check ensures that application
  was not swapped (e.g., to lower security version but valid image) just
  before the load stage in bootloader.

- Second check has been added in the application startup code to ensure
  that currently booting app has higher security version than the one
  programmed in the eFuse for anti-rollback scenario. This will ensure
  that only the legit application boots-up on the device for
  anti-rollback case.
2024-02-15 15:23:19 +02:00
..
bootloader_clock.h bootloader: update copyright notice 2021-05-10 04:58:34 +02:00
bootloader_common.h efuse: Adds major and minor versions and others 2022-12-20 16:30:13 +08:00
bootloader_flash_config.h bootloader: update copyright notice 2021-05-10 04:58:34 +02:00
bootloader_flash_override.h doc(spi_flash): hide unsupported optional features 2024-02-02 10:33:59 +08:00
bootloader_flash.h bugfix(spi_flash): Fix build error when octal flash is enabled, 2023-12-25 14:54:04 +08:00
bootloader_mem.h bootloader: update copyright notice 2021-05-10 04:58:34 +02:00
bootloader_random.h Merge branch 'doc/include_bootloader_random' into 'master' 2021-05-20 09:14:55 +00:00
bootloader_util.h bootloader: update copyright notice 2021-05-10 04:58:34 +02:00
esp_app_format.h fix(ota): additional checks for secure version in anti-rollback case 2024-02-15 15:23:19 +02:00
esp_flash_data_types.h bootloader: update copyright notice 2021-05-10 04:58:34 +02:00
esp_flash_encrypt.h efuse: Fix load_efuses_from_flash when FE is on 2023-03-29 16:18:54 +08:00
esp_flash_partitions.h Merge branch 'update_copyright_notice_bootloader_support' into 'master' 2021-05-19 00:26:35 +00:00
esp_image_format.h fix(ota): additional checks for secure version in anti-rollback case 2024-02-15 15:23:19 +02:00
esp_secure_boot.h all: Apply new version logic (major * 100 + minor) 2023-03-03 22:26:39 +00:00