Lines Matching refs:hash_algo

46 static int __maybe_unused hash_init_sha1(struct hash_algo *algo, void **ctxp)  in hash_init_sha1()
54 static int __maybe_unused hash_update_sha1(struct hash_algo *algo, void *ctx, in hash_update_sha1()
62 static int __maybe_unused hash_finish_sha1(struct hash_algo *algo, void *ctx, in hash_finish_sha1()
73 static int __maybe_unused hash_init_sha256(struct hash_algo *algo, void **ctxp) in hash_init_sha256()
81 static int __maybe_unused hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256()
89 static int __maybe_unused hash_finish_sha256(struct hash_algo *algo, void *ctx, in hash_finish_sha256()
100 static int __maybe_unused hash_init_sha384(struct hash_algo *algo, void **ctxp) in hash_init_sha384()
108 static int __maybe_unused hash_update_sha384(struct hash_algo *algo, void *ctx, in hash_update_sha384()
116 static int __maybe_unused hash_finish_sha384(struct hash_algo *algo, void *ctx, in hash_finish_sha384()
127 static int __maybe_unused hash_init_sha512(struct hash_algo *algo, void **ctxp) in hash_init_sha512()
135 static int __maybe_unused hash_update_sha512(struct hash_algo *algo, void *ctx, in hash_update_sha512()
143 static int __maybe_unused hash_finish_sha512(struct hash_algo *algo, void *ctx, in hash_finish_sha512()
154 static int hash_init_crc16_ccitt(struct hash_algo *algo, void **ctxp) in hash_init_crc16_ccitt()
162 static int hash_update_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_update_crc16_ccitt()
170 static int hash_finish_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_finish_crc16_ccitt()
181 static int __maybe_unused hash_init_crc32(struct hash_algo *algo, void **ctxp) in hash_init_crc32()
189 static int __maybe_unused hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32()
197 static int __maybe_unused hash_finish_crc32(struct hash_algo *algo, void *ctx, in hash_finish_crc32()
213 static struct hash_algo hash_algo[] = { variable
345 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in reloc_update()
346 hash_algo[i].name += gd->reloc_off; in reloc_update()
347 hash_algo[i].hash_func_ws += gd->reloc_off; in reloc_update()
348 hash_algo[i].hash_init += gd->reloc_off; in reloc_update()
349 hash_algo[i].hash_update += gd->reloc_off; in reloc_update()
350 hash_algo[i].hash_finish += gd->reloc_off; in reloc_update()
356 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop) in hash_lookup_algo()
362 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_lookup_algo()
363 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_lookup_algo()
364 *algop = &hash_algo[i]; in hash_lookup_algo()
374 struct hash_algo **algop) in hash_progressive_lookup_algo()
380 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_progressive_lookup_algo()
381 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_progressive_lookup_algo()
382 if (hash_algo[i].hash_init) { in hash_progressive_lookup_algo()
383 *algop = &hash_algo[i]; in hash_progressive_lookup_algo()
396 struct hash_algo *algo; in hash_parse_string()
417 struct hash_algo *algo; in hash_block()
449 static void store_result(struct hash_algo *algo, const uint8_t *sum, in store_result()
505 static int parse_verify_sum(struct hash_algo *algo, char *verify_str, in parse_verify_sum()
550 static void hash_show(struct hash_algo *algo, ulong addr, ulong len, uint8_t *output) in hash_show()
571 struct hash_algo *algo;