Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_core.h289 #define RK_AEAD_ALGO_INIT(cipher_algo, cipher_mode, algo_name, driver_name) {\ argument
290 .name = #algo_name,\
295 .base.cra_name = #algo_name,\
318 #define RK_CIPHER_ALGO_INIT(cipher_algo, cipher_mode, algo_name, driver_name) {\ argument
319 .name = #algo_name,\
324 .base.cra_name = #algo_name,\
346 #define RK_CIPHER_ALGO_XTS_INIT(cipher_algo, algo_name, driver_name) {\ argument
347 .name = #algo_name,\
352 .base.cra_name = #algo_name,\
374 #define RK_HASH_ALGO_INIT(hash_algo, algo_name) {\ argument
[all …]
/OK3568_Linux_fs/u-boot/cmd/
H A Dcrypto.c22 const char *algo_name; member
34 const char *algo_name; member
54 const char *algo_name; member
77 .algo_name = "HASH", \
87 .algo_name = "HMAC", \
99 .algo_name = #algo_type, \
119 .algo_name = #algo_type, \
138 .algo_name = "RSA", \
252 static inline void print_result_MBps(const char *algo_name, in print_result_MBps() argument
260 algo_name, mode_name, crypt, MBps); in print_result_MBps()
[all …]
/OK3568_Linux_fs/u-boot/common/
H A Dhash.c182 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop) in hash_lookup_algo() argument
187 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_lookup_algo()
193 debug("Unknown hash algorithm '%s'\n", algo_name); in hash_lookup_algo()
197 int hash_progressive_lookup_algo(const char *algo_name, in hash_progressive_lookup_algo() argument
203 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_progressive_lookup_algo()
211 debug("Unknown hash algorithm '%s'\n", algo_name); in hash_progressive_lookup_algo()
216 int hash_parse_string(const char *algo_name, const char *str, uint8_t *result) in hash_parse_string() argument
222 ret = hash_lookup_algo(algo_name, &algo); in hash_parse_string()
236 int hash_block(const char *algo_name, const void *data, unsigned int len, in hash_block() argument
242 ret = hash_lookup_algo(algo_name, &algo); in hash_block()
[all …]
H A Dimage-sig.c198 char *algo_name; in fit_image_setup_verify() local
201 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify()
214 info->name = algo_name; in fit_image_setup_verify()
215 info->checksum = image_get_checksum_algo(algo_name); in fit_image_setup_verify()
216 info->crypto = image_get_crypto_algo(algo_name); in fit_image_setup_verify()
220 printf("%s:%s", algo_name, info->keyname); in fit_image_setup_verify()
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()
/OK3568_Linux_fs/kernel/net/batman-adv/
H A Dbat_algo.c139 char *algo_name = (char *)val; in batadv_param_set_ra() local
140 size_t name_len = strlen(algo_name); in batadv_param_set_ra()
142 if (name_len > 0 && algo_name[name_len - 1] == '\n') in batadv_param_set_ra()
143 algo_name[name_len - 1] = '\0'; in batadv_param_set_ra()
145 bat_algo_ops = batadv_algo_get(algo_name); in batadv_param_set_ra()
147 pr_err("Routing algorithm '%s' is not supported\n", algo_name); in batadv_param_set_ra()
151 return param_set_copystring(algo_name, kp); in batadv_param_set_ra()
/OK3568_Linux_fs/u-boot/include/
H A Dhash.h88 int hash_command(const char *algo_name, int flags, cmd_tbl_t *cmdtp, int flag,
110 int hash_block(const char *algo_name, const void *data, unsigned int len,
126 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop);
139 int hash_progressive_lookup_algo(const char *algo_name,
154 int hash_parse_string(const char *algo_name, const char *str, uint8_t *result);
/OK3568_Linux_fs/u-boot/tools/
H A Dimage-host.c155 char *algo_name; in fit_image_setup_sig() local
159 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_sig()
173 info->name = algo_name; in fit_image_setup_sig()
174 info->checksum = image_get_checksum_algo(algo_name); in fit_image_setup_sig()
175 info->crypto = image_get_crypto_algo(algo_name); in fit_image_setup_sig()
181 algo_name, node_name, image_name); in fit_image_setup_sig()
/OK3568_Linux_fs/u-boot/board/freescale/common/
H A Dfsl_validate.c492 const char *algo_name = "sha256"; in calc_img_key_hash() local
495 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_img_key_hash()
540 const char *algo_name = "sha256"; in calc_esbchdr_esbc_hash() local
543 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_esbchdr_esbc_hash()
/OK3568_Linux_fs/kernel/security/integrity/ima/
H A Dima_api.c345 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement() local
366 audit_log_format(ab, " hash=\"%s:%s\"", algo_name, hash); in ima_audit_measurement()