Lines Matching refs:state
68 bootutil_img_hash(struct boot_loader_state *state, in bootutil_img_hash() argument
97 (void)state; in bootutil_img_hash()
112 if (state == NULL) { in bootutil_img_hash()
116 enc_state = BOOT_CURR_ENC(state); in bootutil_img_hash()
117 image_index = BOOT_CURR_IMG(state); in bootutil_img_hash()
132 sector_off = boot_get_state_secondary_offset(state, fap) + start_offset; in bootutil_img_hash()
134 sector_off = boot_get_state_secondary_offset(state, fap); in bootutil_img_hash()
353 bootutil_get_img_security_cnt(struct boot_loader_state *state, int slot, in bootutil_get_img_security_cnt() argument
362 if ((state == NULL) || in bootutil_get_img_security_cnt()
363 (boot_img_hdr(state, slot) == NULL) || in bootutil_get_img_security_cnt()
371 if (boot_img_hdr(state, slot)->ih_protect_tlv_size == 0) { in bootutil_get_img_security_cnt()
376 it.start_off = boot_get_state_secondary_offset(state, fap); in bootutil_get_img_security_cnt()
379 rc = bootutil_tlv_iter_begin(&it, boot_img_hdr(state, slot), fap, IMAGE_TLV_SEC_CNT, true); in bootutil_get_img_security_cnt()
399 rc = LOAD_IMAGE_DATA(boot_img_hdr(state, slot), fap, off, img_security_cnt, len); in bootutil_get_img_security_cnt()
478 bootutil_img_validate(struct boot_loader_state *state, in bootutil_img_validate() argument
488 int image_index = (state == NULL ? 0 : BOOT_CURR_IMG(state)); in bootutil_img_validate()
523 rc = bootutil_img_hash(state, hdr, fap, tmp_buf, tmp_buf_sz, hash, seed, seed_len, in bootutil_img_validate()
526 rc = bootutil_img_hash(state, hdr, fap, tmp_buf, tmp_buf_sz, hash, seed, seed_len); in bootutil_img_validate()
547 it.start_off = boot_get_state_secondary_offset(state, fap) + start_offset; in bootutil_img_validate()
549 it.start_off = boot_get_state_secondary_offset(state, fap); in bootutil_img_validate()