Lines Matching refs:img_desc

44 			  const auth_img_desc_t *img_desc,  in auth_get_param()  argument
49 if (img_desc->authenticated_data == NULL) in auth_get_param()
54 img_desc->authenticated_data[i].type_desc)) { in auth_get_param()
55 *param = img_desc->authenticated_data[i].data.ptr; in auth_get_param()
56 *len = img_desc->authenticated_data[i].data.len; in auth_get_param()
90 const auth_img_desc_t *img_desc, in auth_hash() argument
99 rc = auth_get_param(param->hash, img_desc->parent, in auth_hash()
108 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_hash()
156 const auth_img_desc_t *img_desc, in auth_signature() argument
165 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_signature()
174 rc = img_parser_get_auth_param(img_desc->img_type, param->sig, in auth_signature()
183 rc = img_parser_get_auth_param(img_desc->img_type, param->alg, in auth_signature()
194 if (img_desc->parent != NULL) { in auth_signature()
195 rc = auth_get_param(param->pk, img_desc->parent, in auth_signature()
218 rc = img_parser_get_auth_param(img_desc->img_type, in auth_signature()
321 const auth_img_desc_t *img_desc, in auth_nvctr() argument
335 rc = img_parser_get_auth_param(img_desc->img_type, param->cert_nv_ctr, in auth_nvctr()
399 int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc __unused, in plat_set_nv_ctr2()
413 const auth_img_desc_t *img_desc = NULL; in auth_mod_get_parent_id() local
417 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_get_parent_id()
420 if (img_desc->parent == NULL) { in auth_mod_get_parent_id()
426 if (auth_img_flags[img_desc->parent->img_id] & IMG_FLAG_AUTHENTICATED) { in auth_mod_get_parent_id()
431 *parent_id = img_desc->parent->img_id; in auth_mod_get_parent_id()
456 const auth_img_desc_t *img_desc = NULL; in auth_mod_verify_img() local
468 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_verify_img()
471 rc = img_parser_check_integrity(img_desc->img_type, img_ptr, img_len); in auth_mod_verify_img()
480 if (img_desc->img_auth_methods == NULL) in auth_mod_verify_img()
483 auth_method = &img_desc->img_auth_methods[i]; in auth_mod_verify_img()
490 img_desc, img_ptr, img_len); in auth_mod_verify_img()
494 img_desc, img_ptr, img_len); in auth_mod_verify_img()
500 img_desc, img_ptr, img_len, in auth_mod_verify_img()
521 img_desc, cert_nv_ctr); in auth_mod_verify_img()
531 if (img_desc->authenticated_data != NULL) { in auth_mod_verify_img()
533 if (img_desc->authenticated_data[i].type_desc == NULL) { in auth_mod_verify_img()
538 rc = img_parser_get_auth_param(img_desc->img_type, in auth_mod_verify_img()
539 img_desc->authenticated_data[i].type_desc, in auth_mod_verify_img()
548 if (param_len > img_desc->authenticated_data[i].data.len) { in auth_mod_verify_img()
553 memcpy((void *)img_desc->authenticated_data[i].data.ptr, in auth_mod_verify_img()
560 type_desc = img_desc->authenticated_data[i].type_desc; in auth_mod_verify_img()
574 auth_img_flags[img_desc->img_id] |= IMG_FLAG_AUTHENTICATED; in auth_mod_verify_img()