Lines Matching refs:hash_algo

34 static int hash_init_sha1(struct hash_algo *algo, void **ctxp)  in hash_init_sha1()
42 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1()
49 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1()
62 static int hash_init_sha256(struct hash_algo *algo, void **ctxp) in hash_init_sha256()
70 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256()
77 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256()
89 static int hash_init_crc32(struct hash_algo *algo, void **ctxp) in hash_init_crc32()
97 static int hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32()
104 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32()
120 static struct hash_algo hash_algo[] = { variable
182 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop) in hash_lookup_algo()
186 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_lookup_algo()
187 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_lookup_algo()
188 *algop = &hash_algo[i]; in hash_lookup_algo()
198 struct hash_algo **algop) in hash_progressive_lookup_algo()
202 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_progressive_lookup_algo()
203 if (!strcmp(algo_name, hash_algo[i].name)) { in hash_progressive_lookup_algo()
204 if (hash_algo[i].hash_init) { in hash_progressive_lookup_algo()
205 *algop = &hash_algo[i]; in hash_progressive_lookup_algo()
218 struct hash_algo *algo; in hash_parse_string()
239 struct hash_algo *algo; in hash_block()
270 static void store_result(struct hash_algo *algo, const uint8_t *sum, in store_result()
326 static int parse_verify_sum(struct hash_algo *algo, char *verify_str, in parse_verify_sum()
371 static void hash_show(struct hash_algo *algo, ulong addr, ulong len, uint8_t *output) in hash_show()
392 struct hash_algo *algo;