79 [
CRC32] = {
"CRC32", 4},
107 if (i >= NUM_HASHES)
return AVERROR(EINVAL);
109 if (!res)
return AVERROR(ENOMEM);
152 case CRC32: ctx->
crc = UINT32_MAX;
break;
void av_sha_final(struct AVSHA *context, uint8_t *digest)
Finish hashing and output digest value.
struct AVSHA512 * av_sha512_alloc(void)
Allocate an AVSHA512 context.
void av_sha_update(struct AVSHA *context, const uint8_t *data, unsigned int len)
Update hash value.
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table.
struct AVRIPEMD * av_ripemd_alloc(void)
Allocate an AVRIPEMD context.
void av_ripemd_update(struct AVRIPEMD *context, const uint8_t *data, unsigned int len)
Update hash value.
void av_murmur3_update(struct AVMurMur3 *c, const uint8_t *src, int len)
int av_sha_init(struct AVSHA *context, int bits)
Initialize SHA-1 or SHA-2 hashing.
void av_murmur3_init(struct AVMurMur3 *c)
void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len)
Update hash value.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
struct AVMurMur3 * av_murmur3_alloc(void)
void av_ripemd_final(struct AVRIPEMD *context, uint8_t *digest)
Finish hashing and output digest value.
void av_hash_init(AVHashContext *ctx)
Initialize or reset a hash context.
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len) av_pure
Calculate the Adler32 checksum of a buffer.
void av_murmur3_final(struct AVMurMur3 *c, uint8_t dst[16])
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
struct AVMD5 * av_md5_alloc(void)
Allocate an AVMD5 context.
int av_strcasecmp(const char *a, const char *b)
Locale-independent case-insensitive compare.
int av_hash_alloc(AVHashContext **ctx, const char *name)
Allocate a hash context for the algorithm specified by name.
const char * av_hash_get_name(const AVHashContext *ctx)
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length) av_pure
Calculate the CRC of a block.
void av_hash_freep(AVHashContext **ctx)
Free hash context.
void av_hash_final(AVHashContext *ctx, uint8_t *dst)
Finalize a hash context and compute the actual hash value.
const char * av_hash_names(int i)
Get the names of available hash algorithms.
int av_hash_get_size(const AVHashContext *ctx)
memory handling functions
void av_sha512_update(struct AVSHA512 *context, const uint8_t *data, unsigned int len)
Update hash value.
void av_md5_init(struct AVMD5 *ctx)
Initialize MD5 hashing.
int av_sha512_init(struct AVSHA512 *context, int bits)
Initialize SHA-2 512 hashing.
void av_hash_update(AVHashContext *ctx, const uint8_t *src, int len)
Update a hash context with additional data.
void av_md5_final(struct AVMD5 *ctx, uint8_t *dst)
Finish hashing and output digest value.
int av_ripemd_init(struct AVRIPEMD *context, int bits)
Initialize RIPEMD hashing.
void av_sha512_final(struct AVSHA512 *context, uint8_t *digest)
Finish hashing and output digest value.
void * av_mallocz(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
struct AVSHA * av_sha_alloc(void)
Allocate an AVSHA context.