• Home
  • Raw
  • Download

Lines Matching refs:fit

181 struct image_region *fit_region_make_list(const void *fit,  in fit_region_make_list()  argument
203 region[i].data = fit + fdt_regions[i].offset; in fit_region_make_list()
211 const void *fit, int noffset, int required_keynode, in fit_image_setup_verify() argument
217 if (fdt_totalsize(fit) > CONFIG_FIT_SIGNATURE_MAX_SIZE) { in fit_image_setup_verify()
222 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify()
227 padding_name = fdt_getprop(fit, noffset, "padding", NULL); in fit_image_setup_verify()
232 info->keyname = fdt_getprop(fit, noffset, "key-name-hint", NULL); in fit_image_setup_verify()
233 info->fit = (void *)fit; in fit_image_setup_verify()
251 int fit_image_check_sig(const void *fit, int noffset, const void *data, in fit_image_check_sig() argument
260 if (fit_image_setup_verify(&info, fit, noffset, required_keynode, in fit_image_check_sig()
264 if (fit_image_hash_get_value(fit, noffset, &fit_value, in fit_image_check_sig()
281 static int fit_image_verify_sig(const void *fit, int image_noffset, in fit_image_verify_sig() argument
291 fdt_for_each_subnode(noffset, fit, image_noffset) { in fit_image_verify_sig()
292 const char *name = fit_get_name(fit, noffset, NULL); in fit_image_verify_sig()
296 ret = fit_image_check_sig(fit, noffset, data, in fit_image_verify_sig()
317 err_msg, fit_get_name(fit, noffset, NULL), in fit_image_verify_sig()
318 fit_get_name(fit, image_noffset, NULL)); in fit_image_verify_sig()
322 int fit_image_verify_required_sigs(const void *fit, int image_noffset, in fit_image_verify_required_sigs() argument
346 ret = fit_image_verify_sig(fit, image_noffset, data, size, in fit_image_verify_required_sigs()
362 int fit_config_check_sig(const void *fit, int noffset, int required_keynode, in fit_config_check_sig() argument
377 fit_get_name(fit, noffset, NULL), in fit_config_check_sig()
380 if (fit_image_setup_verify(&info, fit, noffset, required_keynode, in fit_config_check_sig()
384 if (fit_image_hash_get_value(fit, noffset, &fit_value, in fit_config_check_sig()
391 prop = fdt_getprop(fit, noffset, "hashed-nodes", &prop_len); in fit_config_check_sig()
429 count = fdt_find_regions(fit, node_inc, count, in fit_config_check_sig()
447 strings = fdt_getprop(fit, noffset, "hashed-strings", NULL); in fit_config_check_sig()
453 fdt_regions[count].offset = fdt_off_dt_strings(fit); in fit_config_check_sig()
461 fit_region_make_list(fit, fdt_regions, count, region); in fit_config_check_sig()
471 static int fit_config_verify_sig(const void *fit, int conf_noffset, in fit_config_verify_sig() argument
480 fdt_for_each_subnode(noffset, fit, conf_noffset) { in fit_config_verify_sig()
481 const char *name = fit_get_name(fit, noffset, NULL); in fit_config_verify_sig()
485 ret = fit_config_check_sig(fit, noffset, sig_offset, in fit_config_verify_sig()
506 err_msg, fit_get_name(fit, noffset, NULL), in fit_config_verify_sig()
507 fit_get_name(fit, conf_noffset, NULL)); in fit_config_verify_sig()
511 int fit_config_verify_required_sigs(const void *fit, int conf_noffset, in fit_config_verify_required_sigs() argument
532 ret = fit_config_verify_sig(fit, conf_noffset, sig_blob, in fit_config_verify_required_sigs()
544 int fit_config_verify(const void *fit, int conf_noffset) in fit_config_verify() argument
546 return fit_config_verify_required_sigs(fit, conf_noffset, in fit_config_verify()