Searched refs:blk_sz (Results 1 – 4 of 4) sorted by relevance
85 uint32_t blk_sz; in bootutil_img_hash() local102 (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 …]
132 uint32_t blk_sz; in boot_decrypt_and_copy_image_to_sram() local175 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()
1339 uint32_t blk_sz; local1407 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,
139 uint32_t blk_sz; in decrypt_region_inplace() local160 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()