Lines Matching refs:img_desc
49 const auth_img_desc_t *img_desc, in auth_get_param() argument
54 if (img_desc->authenticated_data == NULL) in auth_get_param()
59 img_desc->authenticated_data[i].type_desc)) { in auth_get_param()
60 *param = img_desc->authenticated_data[i].data.ptr; in auth_get_param()
61 *len = img_desc->authenticated_data[i].data.len; in auth_get_param()
95 const auth_img_desc_t *img_desc, in auth_hash() argument
104 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()
148 const auth_img_desc_t *img_desc, in auth_signature() argument
157 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_signature()
162 rc = img_parser_get_auth_param(img_desc->img_type, param->sig, in auth_signature()
167 rc = img_parser_get_auth_param(img_desc->img_type, param->alg, in auth_signature()
174 if (img_desc->parent) { in auth_signature()
175 rc = auth_get_param(param->pk, img_desc->parent, in auth_signature()
188 rc = img_parser_get_auth_param(img_desc->img_type, in auth_signature()
231 const auth_img_desc_t *img_desc, in auth_nvctr() argument
242 rc = img_parser_get_auth_param(img_desc->img_type, param->cert_nv_ctr, in auth_nvctr()
282 img_desc, cert_nv_ctr); in auth_nvctr()
289 int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc __unused, in plat_set_nv_ctr2()
303 const auth_img_desc_t *img_desc = NULL; in auth_mod_get_parent_id() local
307 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_get_parent_id()
310 if (img_desc->parent == NULL) { in auth_mod_get_parent_id()
316 if (auth_img_flags[img_desc->parent->img_id] & IMG_FLAG_AUTHENTICATED) { in auth_mod_get_parent_id()
321 *parent_id = img_desc->parent->img_id; in auth_mod_get_parent_id()
349 const auth_img_desc_t *img_desc = NULL; in auth_mod_verify_img() local
356 img_desc = FCONF_GET_PROPERTY(tbbr, cot, img_id); in auth_mod_verify_img()
359 rc = img_parser_check_integrity(img_desc->img_type, img_ptr, img_len); in auth_mod_verify_img()
364 if (img_desc->img_auth_methods == NULL) in auth_mod_verify_img()
367 auth_method = &img_desc->img_auth_methods[i]; in auth_mod_verify_img()
374 img_desc, img_ptr, img_len); in auth_mod_verify_img()
378 img_desc, img_ptr, img_len); in auth_mod_verify_img()
382 img_desc, img_ptr, img_len); in auth_mod_verify_img()
394 if (img_desc->authenticated_data != NULL) { in auth_mod_verify_img()
396 if (img_desc->authenticated_data[i].type_desc == NULL) { in auth_mod_verify_img()
401 rc = img_parser_get_auth_param(img_desc->img_type, in auth_mod_verify_img()
402 img_desc->authenticated_data[i].type_desc, in auth_mod_verify_img()
407 if (param_len > img_desc->authenticated_data[i].data.len) { in auth_mod_verify_img()
412 memcpy((void *)img_desc->authenticated_data[i].data.ptr, in auth_mod_verify_img()
418 auth_img_flags[img_desc->img_id] |= IMG_FLAG_AUTHENTICATED; in auth_mod_verify_img()