Home
last modified time | relevance | path

Searched refs:BOOT_MAGIC_SZ (Results 1 – 7 of 7) sorted by relevance

/mcuboot-latest/boot/bootutil/include/bootutil/
Dbootutil.h74 #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];
Dbootutil_public.h84 #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/
Dbootutil_misc.h22 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()
Dbootutil_public.c223 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()
Dbootutil_misc.c230 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()
Dbootutil_priv.h171 _Static_assert(sizeof(boot_img_magic) == BOOT_MAGIC_SZ, "Invalid size for image magic");
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial.c884 if (img_size_tmp > (area_size - BOOT_MAGIC_SZ)) { in bs_upload()