/mcuboot-3.7.0/sim/mcuboot-sys/src/ |
D | lib.rs | 23 pub fn new(size: u32, offset: u32) -> RamBlock { in new() 25 ram: vec![0; size as usize], in new() 36 pub fn borrow_part(&self, base: usize, size: usize) -> &[u8] { in borrow_part() 37 &self.ram[base..base+size] in borrow_part() 45 size: self.ram.len() as u32, in invoke()
|
D | area.rs | 60 if base > sector.base + sector.size - 1 { in add_image() 72 size: sector.size as u32, in add_image() 75 base += sector.size; in add_image() 76 len -= sector.size; in add_image() 89 size: orig_len as u32, in add_image() 103 size: len as u32, in add_simple_image() 112 size: len as u32, in add_simple_image() 122 return Some((area.off as usize, area.size as usize, area.device_id)); in find() 209 pub size: u32, field
|
/mcuboot-3.7.0/boot/zcbor/include/ |
D | zcbor_print.h | 76 static void zcbor_print_compare_lines(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_lines() argument 78 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 82 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 86 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 94 static void zcbor_print_compare_strings(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings() argument 98 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings() 101 MIN(col_width, (size - i*col_width))); in zcbor_print_compare_strings() 107 static void zcbor_print_compare_strings_diff(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings_diff() argument 112 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings_diff() 113 if (memcmp(&str1[i*col_width], &str2[i*col_width], MIN(col_width, (size - i*col_width))) != 0) { in zcbor_print_compare_strings_diff() [all …]
|
/mcuboot-3.7.0/ext/tinycrypt/tests/ |
D | test_hmac_prng.c | 79 unsigned int size = (1 << 19); in main() local 80 uint8_t random[size]; in main() 118 if (tc_hmac_prng_generate(random, size, &h) < 1) { in main() 126 printBinaryFile(random, size); in main() 127 show ("Pseudo-random data", random, size); in main()
|
/mcuboot-3.7.0/boot/mynewt/flash_map_backend/src/ |
D | flash_map_extended.c | 57 uint32_t size; in flash_area_sector_from_off() local 69 hf->hf_itf->hff_sector_info(hf, i, &start, &size); in flash_area_sector_from_off() 73 if (off >= start - fa->fa_off && off <= (start - fa->fa_off) + size) { in flash_area_sector_from_off() 75 sector->fs_size = size; in flash_area_sector_from_off()
|
/mcuboot-3.7.0/boot/zephyr/boards/ |
D | nrf52840dk_ram.overlay | 31 #size-cells = <1>; 37 erase-block-size = <4096>; 38 write-block-size = <1>; 44 #size-cells = <1>;
|
D | nrf52840dk_ram_multi.overlay | 39 #size-cells = <1>; 45 erase-block-size = <4096>; 46 write-block-size = <1>; 52 #size-cells = <1>;
|
/mcuboot-3.7.0/ext/tinycrypt/lib/source/ |
D | ecc_platform_specific.c | 74 int default_CSPRNG(uint8_t *dest, unsigned int size) { in default_CSPRNG() argument 77 if (dest == (uint8_t *) 0 || (size <= 0)) in default_CSPRNG() 89 size_t left = (size_t) size; in default_CSPRNG()
|
D | utils.c | 64 int _compare(const uint8_t *a, const uint8_t *b, size_t size) in _compare() argument 70 for (unsigned int i = 0; i < size; i++) { in _compare()
|
/mcuboot-3.7.0/boot/zephyr/ |
D | shared_data.c | 32 size_t size, in boot_add_data_to_shared_area() argument 85 tlv_entry.tlv_len = size; in boot_add_data_to_shared_area() 88 SHARED_DATA_ENTRY_SIZE(size))) { in boot_add_data_to_shared_area() 106 rc = retention_write(bootloader_info_dev, offset, data, size); in boot_add_data_to_shared_area() 113 shared_data_size += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
|
D | hooks_sample.c | 81 size_t size) in boot_copy_region_post_hook() argument 87 size_t size) in boot_serial_uploaded_hook() argument
|
/mcuboot-3.7.0/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/ |
D | startup_psoc6_02_cm0plus.S | 52 .size __StackLimit, . - __StackLimit 54 .size __StackTop, . - __StackTop 69 .size __HeapBase, . - __HeapBase 71 .size __HeapLimit, . - __HeapLimit 112 .size __Vectors, . - __Vectors 120 .size __ramVectors, . - __ramVectors 142 .size Cy_OnResetUser, . - Cy_OnResetUser 296 .size Reset_Handler, . - Reset_Handler 304 .size Default_Handler, . - Default_Handler 310 .size Cy_SysLib_FaultHandler, . - Cy_SysLib_FaultHandler [all …]
|
/mcuboot-3.7.0/boot/cypress/MCUBootApp/os/ |
D | os_heap.h | 29 void *os_malloc(size_t size); 31 void *os_realloc(void *ptr, size_t size);
|
/mcuboot-3.7.0/boot/zephyr/include/os/ |
D | os_heap.h | 29 void *os_malloc(size_t size); 31 void *os_realloc(void *ptr, size_t size);
|
/mcuboot-3.7.0/docs/ |
D | readme-mbed.md | 15 * `"mcuboot.slot-size"`: size of an image slot (only one image, two slots are currently supported) 17 * `"target.restrict_size"`: the maximum size of the bootloader, such that it does not overlap with … 24 * Its size equals the `"mcuboot.slot-size"` you have set 25 …s are aligned to. If the read size is larger than _one byte_, you need to set `"mcuboot.read-granu… 41 …t.header-size"` of your bootloader. And its size (`"target.mbed_app_size"`) must be no larger than…
|
/mcuboot-3.7.0/ci/fih_test_docker/ |
D | run_fi_test.sh | 84 for size in "${sizes[@]}"; do 85 echo "Run tests with skip size $size" 1>&2 86 run_test $size
|
/mcuboot-3.7.0/sim/simflash/src/ |
D | lib.rs | 135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector() 136 if offset < size { in get_sector() 139 offset -= size; in get_sector() 280 pub size: usize, field 294 Some((num, &size)) => { in next() 296 self.base += size; in next() 300 size, in next() 328 flash.erase(0, sectors[0].size).unwrap(); in test_device() 331 assert!(flash.erase(0, sectors[0].size - 1).is_bounds()); in test_device() 339 flash.erase(0, sectors[0].size).unwrap(); in test_device() [all …]
|
/mcuboot-3.7.0/boot/bootutil/include/bootutil/ |
D | boot_hooks.h | 120 size_t size); 138 size_t size);
|
D | boot_status.h | 171 #define SHARED_DATA_ENTRY_SIZE(size) (size + SHARED_DATA_ENTRY_HEADER_SIZE) argument
|
/mcuboot-3.7.0/boot/boot_serial/src/ |
D | boot_serial_encryption.c | 65 uint32_t *size) in read_image_size() argument 100 *size = off + protect_tlv_size + info.it_tlv_tot; in read_image_size() 221 size_t size; in decrypt_image_inplace() local 274 for (sect = 0, size = 0; size < src_size && sect < sect_count; sect++) { in decrypt_image_inplace() 275 rc = decrypt_region_inplace(state, fa_p,hdr, size, sect_size); in decrypt_image_inplace() 279 size += sect_size; in decrypt_image_inplace()
|
/mcuboot-3.7.0/boot/espressif/port/ |
D | esp_mcuboot.c | 143 static bool aligned_flash_read(uintptr_t addr, void *dest, size_t size) in aligned_flash_read() argument 145 if (IS_ALIGNED(addr, 4) && IS_ALIGNED((uintptr_t)dest, 4) && IS_ALIGNED(size, 4)) { in aligned_flash_read() 148 return bootloader_flash_read(addr, dest, size, true) == ESP_OK; in aligned_flash_read() 153 uint32_t bytes_remaining = size; in aligned_flash_read() 213 static bool aligned_flash_write(size_t dest_addr, const void *src, size_t size) in aligned_flash_write() argument 221 if (IS_ALIGNED(dest_addr, 4) && IS_ALIGNED((uintptr_t)src, 4) && IS_ALIGNED(size, 4)) { in aligned_flash_write() 224 … return bootloader_flash_write(dest_addr, (void *)src, size, flash_encryption_enabled) == ESP_OK; in aligned_flash_write() 229 uint32_t bytes_remaining = size; in aligned_flash_write()
|
/mcuboot-3.7.0/boot/bootutil/src/ |
D | boot_record.c | 48 size_t size, in boot_add_data_to_shared_area() argument 94 tlv_entry.tlv_len = size; in boot_add_data_to_shared_area() 97 SHARED_DATA_ENTRY_SIZE(size))) { in boot_add_data_to_shared_area() 110 memcpy((void *)offset, data, size); in boot_add_data_to_shared_area() 112 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
|
/mcuboot-3.7.0/boot/cypress/platforms/PSOC_062_2M/CM4/GCC_ARM/ |
D | startup_psoc6_02_cm4.S | 52 .size __StackLimit, . - __StackLimit 54 .size __StackTop, . - __StackTop 69 .size __HeapBase, . - __HeapBase 71 .size __HeapLimit, . - __HeapLimit 265 .size __Vectors, . - __Vectors 273 .size __ramVectors, . - __ramVectors 295 .size Cy_OnResetUser, . - Cy_OnResetUser 305 .size cy_toolchain_init, . - cy_toolchain_init 462 .size Reset_Handler, . - Reset_Handler 471 .size Default_Handler, . - Default_Handler [all …]
|
/mcuboot-3.7.0/ext/tinycrypt/lib/include/tinycrypt/ |
D | ecc_platform_specific.h | 79 int default_CSPRNG(uint8_t *dest, unsigned int size);
|
/mcuboot-3.7.0/sim/src/ |
D | tlv.rs | 347 let mut size = 0; in protect_size() localVariable 350 size += 4; in protect_size() 352 … size += (self.dependencies.len() as u16) * (4 + std::mem::size_of::<Dependency>() as u16); in protect_size() 354 size += 4 + 4; in protect_size() 357 size in protect_size() 442 let size = self.protect_size(); in make_tlv() localVariable 443 protected_tlv.write_u16::<LittleEndian>(size).unwrap(); in make_tlv() 465 assert_eq!(size, protected_tlv.len() as u16, "protected TLV length incorrect"); in make_tlv() 674 let size = if aes256 { 40 } else { 24 }; in make_tlv() localVariable 675 assert!(encbuf.len() == size); in make_tlv() [all …]
|