Lines Matching refs:img_desc

45 			  const auth_img_desc_t *img_desc,  in auth_get_param()  argument
50 if (img_desc->authenticated_data == NULL) in auth_get_param()
55 img_desc->authenticated_data[i].type_desc)) { in auth_get_param()
56 *param = img_desc->authenticated_data[i].data.ptr; in auth_get_param()
57 *len = img_desc->authenticated_data[i].data.len; in auth_get_param()
91 const auth_img_desc_t *img_desc, in auth_hash() argument
100 rc = auth_get_param(param->hash, img_desc->parent, in auth_hash()
109 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_hash()
157 const auth_img_desc_t *img_desc, in auth_signature() argument
166 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_signature()
175 rc = img_parser_get_auth_param(img_desc->img_type, param->sig, in auth_signature()
184 rc = img_parser_get_auth_param(img_desc->img_type, param->alg, in auth_signature()
207 if (img_desc->parent != NULL) { in auth_signature()
208 rc = auth_get_param(param->pk, img_desc->parent, in auth_signature()
231 rc = img_parser_get_auth_param(img_desc->img_type, in auth_signature()
324 const auth_img_desc_t *img_desc, in auth_nvctr() argument
337 rc = img_parser_get_auth_param(img_desc->img_type, param->cert_nv_ctr, in auth_nvctr()
415 int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc __unused, in plat_set_nv_ctr2()
429 const auth_img_desc_t *img_desc = NULL; in auth_mod_get_parent_id() local
433 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_get_parent_id()
436 if (img_desc->parent == NULL) { in auth_mod_get_parent_id()
442 if (auth_img_flags[img_desc->parent->img_id] & IMG_FLAG_AUTHENTICATED) { in auth_mod_get_parent_id()
447 *parent_id = img_desc->parent->img_id; in auth_mod_get_parent_id()
472 const auth_img_desc_t *img_desc = NULL; in auth_mod_verify_img() local
484 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_verify_img()
487 rc = img_parser_check_integrity(img_desc->img_type, img_ptr, img_len); in auth_mod_verify_img()
496 if (img_desc->img_auth_methods == NULL) in auth_mod_verify_img()
499 auth_method = &img_desc->img_auth_methods[i]; in auth_mod_verify_img()
506 img_desc, img_ptr, img_len); in auth_mod_verify_img()
510 img_desc, img_ptr, img_len); in auth_mod_verify_img()
516 img_desc, img_ptr, img_len, in auth_mod_verify_img()
537 img_desc, cert_nv_ctr); in auth_mod_verify_img()
547 if (img_desc->authenticated_data != NULL) { in auth_mod_verify_img()
549 if (img_desc->authenticated_data[i].type_desc == NULL) { in auth_mod_verify_img()
554 rc = img_parser_get_auth_param(img_desc->img_type, in auth_mod_verify_img()
555 img_desc->authenticated_data[i].type_desc, in auth_mod_verify_img()
564 if (param_len > img_desc->authenticated_data[i].data.len) { in auth_mod_verify_img()
569 memcpy((void *)img_desc->authenticated_data[i].data.ptr, in auth_mod_verify_img()
576 type_desc = img_desc->authenticated_data[i].type_desc; in auth_mod_verify_img()
590 auth_img_flags[img_desc->img_id] |= IMG_FLAG_AUTHENTICATED; in auth_mod_verify_img()