Lines Matching refs:hash
26 #include "libavutil/hash.h"
43 static struct AVHashContext *hash;
52 printf("Supported hash algorithms:");
66 printf("%s=", av_hash_get_name(hash));
68 av_hash_final_b64(hash, res, sizeof(res));
71 av_hash_final_hex(hash, res, sizeof(res));
88 printf("%s=OPEN-FAILED: %s:", av_hash_get_name(hash), strerror(errno));
93 av_hash_init(hash);
105 av_hash_update(hash, buffer, size);
131 if ((ret = av_hash_alloc(&hash, hash_name)) < 0) {
134 printf("Invalid hash type: %s\n", hash_name);
149 av_hash_freep(&hash);