Lines Matching full:if

38     if(IS_ENCRYPTED(hdr)) {  in boot_image_validate_encrypted()
40 if (rc < 0) { in boot_image_validate_encrypted()
44 if (rc < 0) { in boot_image_validate_encrypted()
70 if (flash_area_read(fa_p, off, &info, sizeof(info))) { in read_image_size()
76 if (info.it_magic == IMAGE_TLV_PROT_INFO_MAGIC) { in read_image_size()
77 if (protect_tlv_size != info.it_tlv_tot) { in read_image_size()
82 if (flash_area_read(fa_p, off + info.it_tlv_tot, &info, sizeof(info))) { in read_image_size()
86 } else if (protect_tlv_size != 0) { in read_image_size()
91 if (info.it_magic != IMAGE_TLV_INFO_MAGIC) { in read_image_size()
136 if (sz - bytes_copied > sizeof buf) { in decrypt_region_inplace()
143 if (rc != 0) { in decrypt_region_inplace()
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()
166 if (off + bytes_copied + chunk_sz > tlv_off) { in decrypt_region_inplace()
168 if (off + bytes_copied >= tlv_off) { in decrypt_region_inplace()
179 if (rc != 0) { in decrypt_region_inplace()
183 if (rc != 0) { in decrypt_region_inplace()
196 * Check if a image was encrypted into the first slot, and decrypt it
230 if(IS_ENCRYPTED(hdr)) { in decrypt_image_inplace()
231 #if 0 //Skip this step?, the image will just not boot if it's not decrypted properly in decrypt_image_inplace()
233 /* First check if the encrypted image is a good image before decrypting */ in decrypt_image_inplace()
235 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in decrypt_image_inplace()
242 if (rc < 0) { in decrypt_image_inplace()
245 if (rc == 0 && boot_enc_set_key(BOOT_CURR_ENC(state), 0, bs)) { in decrypt_image_inplace()
257 if (rc != 0) { in decrypt_image_inplace()
269 if (rc != 0) { in decrypt_image_inplace()
287 if (rc != 0) { in boot_handle_enc_fw()
291 if (IS_ENCRYPTED(&_hdr)) { in boot_handle_enc_fw()
294 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in boot_handle_enc_fw()