Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 26) sorted by relevance

12

/mcuboot-latest/boot/bootutil/src/
Dbootutil_public.c72 .magic = {
246 uint8_t magic[BOOT_MAGIC_SZ]; in boot_read_swap_state() local
252 rc = flash_area_read(fap, off, magic, BOOT_MAGIC_SZ); in boot_read_swap_state()
256 if (bootutil_buffer_is_erased(fap, magic, BOOT_MAGIC_SZ)) { in boot_read_swap_state()
257 state->magic = BOOT_MAGIC_UNSET; in boot_read_swap_state()
259 state->magic = boot_magic_decode(magic); in boot_read_swap_state()
308 uint8_t magic[BOOT_MAGIC_ALIGN_SIZE]; in boot_write_magic() local
324 memset(&magic[0], erased_val, sizeof(magic)); in boot_write_magic()
325 memcpy(&magic[BOOT_MAGIC_ALIGN_SIZE - BOOT_MAGIC_SZ], BOOT_IMG_MAGIC, BOOT_MAGIC_SZ); in boot_write_magic()
330 rc = flash_area_write(fap, pad_off, &magic[0], BOOT_MAGIC_ALIGN_SIZE); in boot_write_magic()
[all …]
Dbootutil_misc.h20 boot_magic_decode(const uint8_t *magic) in boot_magic_decode() argument
22 if (memcmp(magic, BOOT_IMG_MAGIC, BOOT_MAGIC_SZ) == 0) { in boot_magic_decode()
Dbootutil_misc.c230 uint8_t magic[BOOT_MAGIC_SZ]; in boot_find_status() local
236 if (flash_area_read(*fap, boot_magic_off(*fap), magic, BOOT_MAGIC_SZ)) { in boot_find_status()
241 if (BOOT_MAGIC_GOOD == boot_magic_decode(magic)) { in boot_find_status()
Dswap_move.c335 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \
336 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \
369 if (state_primary_slot.magic == BOOT_MAGIC_GOOD && in swap_status_source()
371 state_secondary_slot.magic != BOOT_MAGIC_GOOD) { in swap_status_source()
502 if (swap_state.magic == BOOT_MAGIC_UNSET) { in fixup_revert()
Dswap_offset.c412 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \
413 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \
441 if (state_primary_slot.magic == BOOT_MAGIC_GOOD &&
443 state_secondary_slot.magic != BOOT_MAGIC_GOOD) {
605 if (swap_state.magic == BOOT_MAGIC_UNSET) {
Dswap_scratch.c247 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \
248 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \
376 state_primary_slot.magic) && in swap_status_source()
379 state_scratch.magic) && in swap_status_source()
Dbootutil_priv.h164 uint8_t magic[14]; member
Dloader.c2785 if (active_swap_state->magic != BOOT_MAGIC_GOOD ||
/mcuboot-latest/scripts/
Dmcubin.bt40 Warning("Invalid magic on ptable header");
58 uint32 magic <format=hex>;
69 uint16 magic;
111 if (ihdr.magic == 0x96f3b83d) {
117 if (tlv_hdr.magic == 0x6907) {
/mcuboot-latest/samples/compression_test/
Dindependent_cmp.c19 uint32_t magic; member
50 if (ih.magic != EXPECTED_MAGIC) { in main()
/mcuboot-latest/boot/mynewt/src/
Dsingle_loader.c74 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once()
81 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
/mcuboot-latest/boot/zephyr/
Dsingle_loader.c82 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once()
89 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
Dfirmware_loader.c78 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once()
85 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
Dhooks_sample.c68 state->magic = BOOT_MAGIC_UNSET; in boot_read_swap_state_primary_slot_hook()
DCMakeLists.txt587 # Boot trailer magic size
DKconfig319 It caches the result in the magic area, which makes it an unsecure
424 swap mode. It requires the trailer magic to be added to the signed image.
/mcuboot-latest/scripts/imgtool/
Ddumpinfo.py70 magic = ""
72 magic += "{0:#04x} ".format(trailer_magic[i])
74 magic += ("\n" + " ")
75 return magic
Dimage.py124 def __init__(self, endian, magic=TLV_INFO_MAGIC): argument
125 self.magic = magic
153 header = struct.pack(e + 'HH', self.magic, len(self))
811 magic, _, header_size, _, img_size = struct.unpack('IIHHI', b[:16])
814 if magic != IMAGE_MAGIC:
819 magic, tlv_tot = struct.unpack('HH', tlv_info)
820 if magic == TLV_PROT_INFO_MAGIC:
823 magic, tlv_tot = struct.unpack('HH', tlv_info)
825 if magic != TLV_INFO_MAGIC:
/mcuboot-latest/boot/bootutil/include/bootutil/
Dbootutil.h77 uint8_t magic[BOOT_MAGIC_SZ]; member
Dbootutil_public.h151 uint8_t magic; /* One of the BOOT_MAGIC_[...] values. */ member
/mcuboot-latest/boot/cypress/cy_flash_pal/include/flash_map_backend/
Dflash_map_backend.h145 uint32_t magic; member
/mcuboot-latest/sim/src/
Dimage.rs1631 magic: Option<u8>, image_ok: Option<u8>, in verify_trailers_loose()
1635 magic, image_ok, copy_done) in verify_trailers_loose()
1642 magic: Option<u8>, image_ok: Option<u8>, in verify_trailers()
1646 magic, image_ok, copy_done) in verify_trailers()
1839 magic: tlv.get_magic(), in install_image()
2111 magic: Option<u8>, image_ok: Option<u8>, in verify_trailer()
2126 failed |= match magic { in verify_trailer()
2234 magic: u32, field
/mcuboot-latest/sim/mcuboot-sys/src/
Dapi.rs43 magic: u32, field
/mcuboot-latest/docs/
Dimgtool.md104 trailer magic
Drelease-notes.md164 this value can be increased, which will result in a different magic

12