World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
hash.h
См. документацию.
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 
32 #include "version.h"
33 
116 struct AVHashContext;
117 
126 int av_hash_alloc(struct AVHashContext **ctx, const char *name);
127 
136 const char *av_hash_names(int i);
137 
141 const char *av_hash_get_name(const struct AVHashContext *ctx);
142 
157 #define AV_HASH_MAX_SIZE 64
158 
168 int av_hash_get_size(const struct AVHashContext *ctx);
169 
175 void av_hash_init(struct AVHashContext *ctx);
176 
184 #if FF_API_CRYPTO_SIZE_T
185 void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
186 #else
187 void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, size_t len);
188 #endif
189 
204 void av_hash_final(struct AVHashContext *ctx, uint8_t *dst);
205 
219 void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size);
220 
237 void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size);
238 
255 void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size);
256 
262 void av_hash_freep(struct AVHashContext **ctx);
263 
269 #endif /* AVUTIL_HASH_H */
av_hash_final_b64
void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size)
av_hash_get_name
const char * av_hash_get_name(const struct AVHashContext *ctx)
av_hash_final_bin
void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size)
av_hash_alloc
int av_hash_alloc(struct AVHashContext **ctx, const char *name)
len
GLenum GLsizei len
Definition: SDL_opengl_glext.h:2929
av_hash_names
const char * av_hash_names(int i)
src
GLenum src
Definition: SDL_opengl_glext.h:1740
av_hash_init
void av_hash_init(struct AVHashContext *ctx)
av_hash_get_size
int av_hash_get_size(const struct AVHashContext *ctx)
av_hash_freep
void av_hash_freep(struct AVHashContext **ctx)
ctx
EGLContext ctx
Definition: SDL_egl.h:952
av_hash_final
void av_hash_final(struct AVHashContext *ctx, uint8_t *dst)
dst
GLenum GLenum dst
Definition: SDL_opengl_glext.h:1740
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
av_hash_update
void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len)
av_hash_final_hex
void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size)
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540