Lines Matching refs:hash_algo

45 static int hash_init_sha1(struct hash_algo *algo, void **ctxp)  in hash_init_sha1()
53 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1()
60 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1()
73 static int hash_init_sha256(struct hash_algo *algo, void **ctxp) in hash_init_sha256()
81 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256()
88 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256()
101 static int hash_init_sha384(struct hash_algo *algo, void **ctxp) in hash_init_sha384()
109 static int hash_update_sha384(struct hash_algo *algo, void *ctx, in hash_update_sha384()
116 static int hash_finish_sha384(struct hash_algo *algo, void *ctx, void in hash_finish_sha384()
129 static int hash_init_sha512(struct hash_algo *algo, void **ctxp) in hash_init_sha512()
137 static int hash_update_sha512(struct hash_algo *algo, void *ctx, in hash_update_sha512()
144 static int hash_finish_sha512(struct hash_algo *algo, void *ctx, void in hash_finish_sha512()
157 static int hash_init_crc16_ccitt(struct hash_algo *algo, void **ctxp) in hash_init_crc16_ccitt()
165 static int hash_update_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_update_crc16_ccitt()
173 static int hash_finish_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_finish_crc16_ccitt()
184 static int hash_init_crc32(struct hash_algo *algo, void **ctxp) in hash_init_crc32()
192 static int hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32()
199 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32()
215 static struct hash_algo hash_algo[] = { variable
317 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in reloc_update()
318 hash_algo[i].name += gd->reloc_off; in reloc_update()
319 hash_algo[i].hash_func_ws += gd->reloc_off; in reloc_update()
320 hash_algo[i].hash_init += gd->reloc_off; in reloc_update()
321 hash_algo[i].hash_update += gd->reloc_off; in reloc_update()
322 hash_algo[i].hash_finish += gd->reloc_off; in reloc_update()
328 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop) in hash_lookup_algo()
334 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_lookup_algo()
335 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_lookup_algo()
336 *algop = &hash_algo[i]; in hash_lookup_algo()
346 struct hash_algo **algop) in hash_progressive_lookup_algo()
352 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_progressive_lookup_algo()
353 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_progressive_lookup_algo()
354 if (hash_algo[i].hash_init) { in hash_progressive_lookup_algo()
355 *algop = &hash_algo[i]; in hash_progressive_lookup_algo()
368 struct hash_algo *algo; in hash_parse_string()
389 struct hash_algo *algo; in hash_block()
420 static void store_result(struct hash_algo *algo, const uint8_t *sum, in store_result()
476 static int parse_verify_sum(struct hash_algo *algo, char *verify_str, in parse_verify_sum()
521 static void hash_show(struct hash_algo *algo, ulong addr, ulong len, uint8_t *output) in hash_show()
542 struct hash_algo *algo;