Lines Matching refs:algo
191 const char *algo; in fit_image_print_data() local
199 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_print_data()
203 printf("%s", algo); in fit_image_print_data()
1096 int fit_image_hash_get_algo(const void *fit, int noffset, const char **algo) in fit_image_hash_get_algo() argument
1100 *algo = (const char *)fdt_getprop(fit, noffset, FIT_ALGO_PROP, &len); in fit_image_hash_get_algo()
1101 if (*algo == NULL) { in fit_image_hash_get_algo()
1182 int fit_image_cipher_get_algo(const void *fit, int noffset, char **algo) in fit_image_cipher_get_algo() argument
1186 *algo = (char *)fdt_getprop(fit, noffset, FIT_ALGO_PROP, &len); in fit_image_cipher_get_algo()
1187 if (!*algo) { in fit_image_cipher_get_algo()
1277 struct hash_algo *algo; in calculate_hash()
1280 ret = hash_lookup_algo(name, &algo); in calculate_hash()
1286 algo->hash_func_ws(data, data_len, value, algo->chunk_size); in calculate_hash()
1287 *value_len = algo->digest_size; in calculate_hash()
1298 const char *algo; in fit_image_check_hash() local
1305 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_check_hash()
1309 printf("%s", algo); in fit_image_check_hash()
1325 if (calculate_hash(data, size, algo, value, &value_len)) { in fit_image_check_hash()