Searched refs:BOOT_MAGIC_SZ (Results 1 – 7 of 7) sorted by relevance
/mcuboot-latest/boot/bootutil/include/bootutil/ |
D | bootutil.h | 74 #if BOOT_MAX_ALIGN > BOOT_MAGIC_SZ 75 uint8_t pad4[BOOT_MAGIC_ALIGN_SIZE - BOOT_MAGIC_SZ]; 77 uint8_t magic[BOOT_MAGIC_SZ];
|
D | bootutil_public.h | 84 #define BOOT_MAGIC_SZ 16 macro 94 #define BOOT_MAGIC_ALIGN_SIZE ALIGN_UP(BOOT_MAGIC_SZ, BOOT_MAX_ALIGN) 97 #define BOOT_MAGIC_ALIGN_SIZE BOOT_MAGIC_SZ
|
/mcuboot-latest/boot/bootutil/src/ |
D | bootutil_misc.h | 22 if (memcmp(magic, BOOT_IMG_MAGIC, BOOT_MAGIC_SZ) == 0) { in boot_magic_decode() 31 return flash_area_get_size(fap) - BOOT_MAGIC_SZ; in boot_magic_off()
|
D | bootutil_public.c | 223 uint8_t magic[BOOT_MAGIC_SZ]; in boot_read_swap_state() 229 rc = flash_area_read(fap, off, magic, BOOT_MAGIC_SZ); in boot_read_swap_state() 233 if (bootutil_buffer_is_erased(fap, magic, BOOT_MAGIC_SZ)) { in boot_read_swap_state() 302 memcpy(&magic[BOOT_MAGIC_ALIGN_SIZE - BOOT_MAGIC_SZ], BOOT_IMG_MAGIC, BOOT_MAGIC_SZ); in boot_write_magic()
|
D | bootutil_misc.c | 230 uint8_t magic[BOOT_MAGIC_SZ]; in boot_find_status() 236 if (flash_area_read(*fap, boot_magic_off(*fap), magic, BOOT_MAGIC_SZ)) { in boot_find_status()
|
D | bootutil_priv.h | 171 _Static_assert(sizeof(boot_img_magic) == BOOT_MAGIC_SZ, "Invalid size for image magic");
|
/mcuboot-latest/boot/boot_serial/src/ |
D | boot_serial.c | 884 if (img_size_tmp > (area_size - BOOT_MAGIC_SZ)) { in bs_upload()
|