mirror of https://github.com/wolfSSL/wolfBoot.git
The store commits sectors with hal_flash_erase()/hal_flash_write() and then reads them back through the memory map - sector_ptr(), cache_get_sector()'s refill, and the raw magic reads in check_vault(). On a part that caches flash reads (STM32 ICACHE) those reads can return pre-erase bytes. check_vault() is the worst case: a stale magic there does not merely read wrong, it triggers restore_backup() or a full vault re-initialisation, losing the token. |
||
|---|---|---|
| .. | ||
| MPLAB | ||
| wolfboot | ||
| x86 | ||
| c2000_stdint.h | ||
| ddr_cadence.h | ||
| delta.h | ||
| disk.h | ||
| disk_fs.h | ||
| elf.h | ||
| encrypt.h | ||
| ext4.h | ||
| fat32.h | ||
| fdt.h | ||
| gpt.h | ||
| gzip.h | ||
| hal.h | ||
| hal_fpga.h | ||
| hooks.h | ||
| image.h | ||
| keystore.h | ||
| loader.h | ||
| multiboot.h | ||
| otp_keystore.h | ||
| pci.h | ||
| printf.h | ||
| sdhci.h | ||
| spi_drv.h | ||
| spi_flash.h | ||
| stage2_params.h | ||
| target.h.in | ||
| tpm.h | ||
| uart_drv.h | ||
| uart_flash.h | ||
| ubootenv.h | ||
| user_settings.h | ||
| wolfboot_efi.h | ||
| wolfboot_smc.h | ||