Lines Matching refs:img_desc

50 			  const auth_img_desc_t *img_desc,  in auth_get_param()  argument
55 if (img_desc->authenticated_data == NULL) in auth_get_param()
60 img_desc->authenticated_data[i].type_desc)) { in auth_get_param()
61 *param = img_desc->authenticated_data[i].data.ptr; in auth_get_param()
62 *len = img_desc->authenticated_data[i].data.len; in auth_get_param()
96 const auth_img_desc_t *img_desc, in auth_hash() argument
105 rc = auth_get_param(param->hash, img_desc->parent, in auth_hash()
110 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_hash()
149 const auth_img_desc_t *img_desc, in auth_signature() argument
158 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_signature()
163 rc = img_parser_get_auth_param(img_desc->img_type, param->sig, in auth_signature()
168 rc = img_parser_get_auth_param(img_desc->img_type, param->alg, in auth_signature()
175 if (img_desc->parent) { in auth_signature()
176 rc = auth_get_param(param->pk, img_desc->parent, in auth_signature()
189 rc = img_parser_get_auth_param(img_desc->img_type, in auth_signature()
236 const auth_img_desc_t *img_desc, in auth_nvctr() argument
250 rc = img_parser_get_auth_param(img_desc->img_type, param->cert_nv_ctr, in auth_nvctr()
298 int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc __unused, in plat_set_nv_ctr2()
312 const auth_img_desc_t *img_desc = NULL; in auth_mod_get_parent_id() local
316 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_get_parent_id()
319 if (img_desc->parent == NULL) { in auth_mod_get_parent_id()
325 if (auth_img_flags[img_desc->parent->img_id] & IMG_FLAG_AUTHENTICATED) { in auth_mod_get_parent_id()
330 *parent_id = img_desc->parent->img_id; in auth_mod_get_parent_id()
358 const auth_img_desc_t *img_desc = NULL; in auth_mod_verify_img() local
369 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_verify_img()
372 rc = img_parser_check_integrity(img_desc->img_type, img_ptr, img_len); in auth_mod_verify_img()
377 if (img_desc->img_auth_methods == NULL) in auth_mod_verify_img()
380 auth_method = &img_desc->img_auth_methods[i]; in auth_mod_verify_img()
387 img_desc, img_ptr, img_len); in auth_mod_verify_img()
391 img_desc, img_ptr, img_len); in auth_mod_verify_img()
397 img_desc, img_ptr, img_len, in auth_mod_verify_img()
414 img_desc, cert_nv_ctr); in auth_mod_verify_img()
420 if (img_desc->authenticated_data != NULL) { in auth_mod_verify_img()
422 if (img_desc->authenticated_data[i].type_desc == NULL) { in auth_mod_verify_img()
427 rc = img_parser_get_auth_param(img_desc->img_type, in auth_mod_verify_img()
428 img_desc->authenticated_data[i].type_desc, in auth_mod_verify_img()
433 if (param_len > img_desc->authenticated_data[i].data.len) { in auth_mod_verify_img()
438 memcpy((void *)img_desc->authenticated_data[i].data.ptr, in auth_mod_verify_img()
444 auth_img_flags[img_desc->img_id] |= IMG_FLAG_AUTHENTICATED; in auth_mod_verify_img()