| /rk3399_rockchip-uboot/include/ |
| H A D | hash.h | 88 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);
|
| /rk3399_rockchip-uboot/common/ |
| H A D | hash.c | 182 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 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 | 198 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 D | image-fit.c | 1586 char *algo_name; in fit_image_uncipher() local 1595 if (fit_image_cipher_get_algo(fit, cipher_noffset, &algo_name)) { in fit_image_uncipher() 1601 if (strcmp(algo_name, "aes128")) { in fit_image_uncipher() 1602 printf("Invalid cipher algo '%s'\n", algo_name); in fit_image_uncipher()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto.c | 22 const char *algo_name; member 34 const char *algo_name; member 54 const char *algo_name; member 72 const char *algo_name; member 90 .algo_name = "HASH", \ 100 .algo_name = "HMAC", \ 112 .algo_name = #algo_type, \ 132 .algo_name = #algo_type, \ 151 .algo_name = "RSA", \ 169 .algo_name = #name, \ [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | image-host.c | 155 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()
|
| /rk3399_rockchip-uboot/board/freescale/common/ |
| H A D | fsl_validate.c | 492 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()
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_fit.c | 162 char *algo_name; in spl_fit_image_uncipher() local 180 if (fit_image_cipher_get_algo(fit, cipher_noffset, &algo_name)) { in spl_fit_image_uncipher() 186 if (strcmp(algo_name, "aes128")) { in spl_fit_image_uncipher() 187 printf("Invalid cipher algo '%s'\n", algo_name); in spl_fit_image_uncipher()
|