Home
last modified time | relevance | path

Searched refs:algo_name (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/include/
H A Dhash.h92 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 Dbat_algo.c121 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 Dsoft-interface.c1062 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 Dhash.c318 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 Dautoboot.c57 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 Dimage-sig.c216 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 Dimage-fit.c1138 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 Dimage-host.c159 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 Dfsl_validate.c491 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 Dima_api.c394 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 Dipsec.c81 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 Dotp.c1887 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()