/openbmc/u-boot/include/ |
H A D | hash.h | 92 int hash_command(const char *algo_name, int flags, cmd_tbl_t *cmdtp, int flag, 114 int hash_block(const char *algo_name, const void *data, unsigned int len, 130 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop); 143 int hash_progressive_lookup_algo(const char *algo_name, 158 int hash_parse_string(const char *algo_name, const char *str, uint8_t *result);
|
/openbmc/linux/net/batman-adv/ |
H A D | bat_algo.c | 121 char *algo_name = (char *)val; in batadv_param_set_ra() local 122 size_t name_len = strlen(algo_name); in batadv_param_set_ra() 124 if (name_len > 0 && algo_name[name_len - 1] == '\n') in batadv_param_set_ra() 125 algo_name[name_len - 1] = '\0'; in batadv_param_set_ra() 127 bat_algo_ops = batadv_algo_get(algo_name); in batadv_param_set_ra() 129 pr_err("Routing algorithm '%s' is not supported\n", algo_name); in batadv_param_set_ra() 133 return param_set_copystring(algo_name, kp); in batadv_param_set_ra()
|
H A D | soft-interface.c | 1062 const char *algo_name; in batadv_softif_newlink() local 1066 algo_name = nla_data(data[IFLA_BATADV_ALGO_NAME]); in batadv_softif_newlink() 1067 err = batadv_algo_select(bat_priv, algo_name); in batadv_softif_newlink()
|
/openbmc/u-boot/common/ |
H A D | hash.c | 318 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop) in hash_lookup_algo() argument 323 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_lookup_algo() 329 debug("Unknown hash algorithm '%s'\n", algo_name); in hash_lookup_algo() 333 int hash_progressive_lookup_algo(const char *algo_name, in hash_progressive_lookup_algo() argument 339 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_progressive_lookup_algo() 347 debug("Unknown hash algorithm '%s'\n", algo_name); in hash_progressive_lookup_algo() 358 ret = hash_lookup_algo(algo_name, &algo); in hash_parse_string() 372 int hash_block(const char *algo_name, const void *data, unsigned int len, in hash_block() argument 378 ret = hash_lookup_algo(algo_name, &algo); in hash_block() 533 if (hash_lookup_algo(algo_name, &algo)) { [all …]
|
H A D | autoboot.c | 57 const char *algo_name = "sha256"; in passwd_abort() local 71 ret = hash_parse_string(algo_name, sha_env_str, sha_env); in passwd_abort() 73 printf("Hash %s not supported!\n", algo_name); in passwd_abort() 91 hash_block(algo_name, (const void *)presskey, in passwd_abort()
|
H A D | image-sig.c | 216 char *algo_name; in fit_image_setup_verify() local 224 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify() 237 info->name = algo_name; in fit_image_setup_verify() 238 info->checksum = image_get_checksum_algo(algo_name); in fit_image_setup_verify() 239 info->crypto = image_get_crypto_algo(algo_name); in fit_image_setup_verify() 243 printf("%s:%s", algo_name, info->keyname); in fit_image_setup_verify()
|
H A D | image-fit.c | 1138 int calculate_hash(const void *data, int data_len, const char *algo_name, in calculate_hash() argument 1143 if (hash_lookup_algo(algo_name, &algo)) { in calculate_hash()
|
/openbmc/u-boot/tools/ |
H A D | image-host.c | 159 char *algo_name; in fit_image_setup_sig() local 163 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_sig() 176 info->name = strdup(algo_name); in fit_image_setup_sig() 177 info->checksum = image_get_checksum_algo(algo_name); in fit_image_setup_sig() 178 info->crypto = image_get_crypto_algo(algo_name); in fit_image_setup_sig() 184 algo_name, node_name, image_name); in fit_image_setup_sig()
|
/openbmc/u-boot/board/freescale/common/ |
H A D | fsl_validate.c | 491 const char *algo_name = "sha256"; in calc_img_key_hash() local 494 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_img_key_hash() 539 const char *algo_name = "sha256"; in calc_esbchdr_esbc_hash() local 542 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_esbchdr_esbc_hash()
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_api.c | 394 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement() local 415 audit_log_format(ab, " hash=\"%s:%s\"", algo_name, hash); in ima_audit_measurement()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | ipsec.c | 81 char algo_name[35]; member 812 if (strncmp(name, xfrm_key_entries[i].algo_name, ALGO_LEN) == 0) in xfrm_fill_key()
|
/openbmc/u-boot/cmd/ |
H A D | otp.c | 1887 static void do_hash(const void *data, int data_len, const char *algo_name, uint8_t *value) in do_hash() argument 1891 if (hash_lookup_algo(algo_name, &algo)) { in do_hash()
|