Home
last modified time | relevance | path

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

/mcuboot-3.4.0/sim/src/
Dimage.rs1962 let magic_off = (c::boot_max_align() * 3) + (c::boot_magic_sz() - MAGIC.len()); in verify_trailer()
1963 if v == 1 && &copy[magic_off..] != MAGIC { in verify_trailer()
2100 const MAGIC: &[u8] = &[0x77, 0xc2, 0x95, 0xf3, regex
2106 const MAGIC: &[u8] = &[0x20, 0x00, 0x2d, 0xe1, regex
2123 if offset % align != 0 || MAGIC.len() % align != 0 { in mark_upgrade()
2128 let magic_off = (offset % align) + (c::boot_magic_sz() - MAGIC.len()); in mark_upgrade()
2129 buf[magic_off..].copy_from_slice(MAGIC); in mark_upgrade()
2132 dev.write(offset, MAGIC).unwrap(); in mark_upgrade()