Miam-Player  0.8.0
A nice music player
hash.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
27 #ifndef AVUTIL_HASH_H
28 #define AVUTIL_HASH_H
29 
30 #include <stdint.h>
31 
114 struct AVHashContext;
115 
124 int av_hash_alloc(struct AVHashContext **ctx, const char *name);
125 
134 const char *av_hash_names(int i);
135 
139 const char *av_hash_get_name(const struct AVHashContext *ctx);
140 
155 #define AV_HASH_MAX_SIZE 64
156 
166 int av_hash_get_size(const struct AVHashContext *ctx);
167 
173 void av_hash_init(struct AVHashContext *ctx);
174 
182 void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
183 
198 void av_hash_final(struct AVHashContext *ctx, uint8_t *dst);
199 
213 void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size);
214 
231 void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size);
232 
249 void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size);
250 
256 void av_hash_freep(struct AVHashContext **ctx);
257 
263 #endif /* AVUTIL_HASH_H */
void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size)
size_t size
Definition: mem.h:207
const char * av_hash_get_name(const struct AVHashContext *ctx)
void av_hash_init(struct AVHashContext *ctx)
void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size)
void av_hash_final(struct AVHashContext *ctx, uint8_t *dst)
int av_hash_get_size(const struct AVHashContext *ctx)
int av_hash_alloc(struct AVHashContext **ctx, const char *name)
const char * av_hash_names(int i)
void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len)
void av_hash_freep(struct AVHashContext **ctx)
void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size)