Home
last modified time | relevance | path

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

/mcuboot-latest/boot/bootutil/src/
Dimage_validate.c85 uint32_t blk_sz; in bootutil_img_hash() local
102 (void)blk_sz; in bootutil_img_hash()
165 for (off = 0; off < size; off += blk_sz) { in bootutil_img_hash()
166 blk_sz = size - off; in bootutil_img_hash()
167 if (blk_sz > tmp_buf_sz) { in bootutil_img_hash()
168 blk_sz = tmp_buf_sz; in bootutil_img_hash()
174 if ((off < hdr_size) && ((off + blk_sz) > hdr_size)) { in bootutil_img_hash()
176 blk_sz = hdr_size - off; in bootutil_img_hash()
178 if ((off < tlv_off) && ((off + blk_sz) > tlv_off)) { in bootutil_img_hash()
180 blk_sz = tlv_off - off; in bootutil_img_hash()
[all …]
Dram_load.c132 uint32_t blk_sz; in boot_decrypt_and_copy_image_to_sram() local
175 blk_sz = chunk_sz; in boot_decrypt_and_copy_image_to_sram()
181 blk_sz = tlv_off - (bytes_copied); in boot_decrypt_and_copy_image_to_sram()
184 (bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in boot_decrypt_and_copy_image_to_sram()
Dloader.c1339 uint32_t blk_sz; local
1407 blk_sz = chunk_sz - (hdr->ih_hdr_size - abs_off);
1411 blk_sz = 0; /* nothing to decrypt */
1415 blk_sz = chunk_sz;
1419 if (blk_sz > 0)
1425 blk_sz = 0;
1427 blk_sz = tlv_off - abs_off;
1432 (abs_off + idx) - hdr->ih_hdr_size, blk_sz,
1436 (abs_off + idx) - hdr->ih_hdr_size, blk_sz,
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c139 uint32_t blk_sz; in decrypt_region_inplace() local
160 blk_sz = chunk_sz; in decrypt_region_inplace()
166 blk_sz = 0; in decrypt_region_inplace()
169 blk_sz = off + bytes_copied + chunk_sz - hdr->ih_hdr_size; in decrypt_region_inplace()
181 blk_sz = 0; in decrypt_region_inplace()
183 blk_sz = tlv_off - (off + bytes_copied); in decrypt_region_inplace()
187 (off + bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in decrypt_region_inplace()