|
FFmpeg
|
#include <stdint.h>#include "hash.h"#include "adler32.h"#include "crc.h"#include "md5.h"#include "murmur3.h"#include "ripemd.h"#include "sha.h"#include "sha512.h"#include "avstring.h"#include "error.h"#include "intreadwrite.h"#include "mem.h"Go to the source code of this file.
Data Structures | |
| struct | AVHashContext |
Enumerations | |
| enum | hashtype { MD5, MURMUR3, RIPEMD128, RIPEMD160, RIPEMD256, RIPEMD320, SHA160, SHA224, SHA256, SHA512_224, SHA512_256, SHA384, SHA512, CRC32, ADLER32, NUM_HASHES } |
Functions | |
| const char * | av_hash_names (int i) |
| Get the names of available hash algorithms. | |
| const char * | av_hash_get_name (const AVHashContext *ctx) |
| int | av_hash_get_size (const AVHashContext *ctx) |
| int | av_hash_alloc (AVHashContext **ctx, const char *name) |
| Allocate a hash context for the algorithm specified by name. | |
| void | av_hash_init (AVHashContext *ctx) |
| Initialize or reset a hash context. | |
| void | av_hash_update (AVHashContext *ctx, const uint8_t *src, int len) |
| Update a hash context with additional data. | |
| void | av_hash_final (AVHashContext *ctx, uint8_t *dst) |
| Finalize a hash context and compute the actual hash value. | |
| void | av_hash_freep (AVHashContext **ctx) |
| Free hash context. | |
Variables | |
| struct { | |
| const char * name | |
| int size | |
| } | hashdesc [] |
| enum hashtype |
| const char* av_hash_names | ( | int | i | ) |
| const char* av_hash_get_name | ( | const AVHashContext * | ctx | ) |
| int av_hash_get_size | ( | const AVHashContext * | ctx | ) |
Definition at line 94 of file hash.c.
Referenced by finish(), main(), and md5_finish().
| int av_hash_alloc | ( | struct AVHashContext ** | ctx, |
| const char * | name | ||
| ) |
Allocate a hash context for the algorithm specified by name.
Definition at line 99 of file hash.c.
Referenced by main().
| void av_hash_init | ( | AVHashContext * | ctx | ) |
| void av_hash_update | ( | AVHashContext * | ctx, |
| const uint8_t * | src, | ||
| int | len | ||
| ) |
| void av_hash_final | ( | AVHashContext * | ctx, |
| uint8_t * | dst | ||
| ) |
Finalize a hash context and compute the actual hash value.
Definition at line 178 of file hash.c.
Referenced by finish(), and md5_finish().
| void av_hash_freep | ( | AVHashContext ** | ctx | ) |
| struct { ... } hashdesc[] |
Referenced by av_hash_alloc(), av_hash_get_name(), av_hash_get_size(), and av_hash_names().
1.8.2