Lines Matching refs:hdr

24                               struct image_header *hdr, uint8_t *buf,  in boot_image_validate_encrypted()  argument
38 if(IS_ENCRYPTED(hdr)) { in boot_image_validate_encrypted()
39 rc = boot_enc_load(BOOT_CURR_ENC(state), 1, hdr, fa_p, bs); in boot_image_validate_encrypted()
49 hdr, fa_p, buf, buf_size, NULL, 0, NULL); in boot_image_validate_encrypted()
60 struct image_header *hdr, in read_image_size() argument
68 off = BOOT_TLV_OFF(hdr); in read_image_size()
75 protect_tlv_size = hdr->ih_protect_tlv_size; in read_image_size()
118 struct image_header *hdr, in decrypt_region_inplace() argument
147 if (IS_ENCRYPTED(hdr)) { in decrypt_region_inplace()
150 if (off + bytes_copied < hdr->ih_hdr_size) { in decrypt_region_inplace()
152 if (hdr->ih_hdr_size > (off + bytes_copied + chunk_sz)) { in decrypt_region_inplace()
157 blk_sz = off + bytes_copied + chunk_sz - hdr->ih_hdr_size; in decrypt_region_inplace()
161 idx = hdr->ih_hdr_size; in decrypt_region_inplace()
163 blk_off = ((off + bytes_copied) - hdr->ih_hdr_size) & 0xf; in decrypt_region_inplace()
165 tlv_off = BOOT_TLV_OFF(hdr); in decrypt_region_inplace()
175 (off + bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in decrypt_region_inplace()
209 struct image_header *hdr) in decrypt_image_inplace() argument
230 if(IS_ENCRYPTED(hdr)) { in decrypt_image_inplace()
241 rc = boot_enc_load(BOOT_CURR_ENC(state), 0, hdr, fa_p, bs); in decrypt_image_inplace()
256 rc = read_image_size(fa_p,hdr, &src_size); in decrypt_image_inplace()
268 rc = decrypt_region_inplace(state, fa_p,hdr, size, sect_size); in decrypt_image_inplace()