FFmpeg 5.1.6
Files | Functions | Variables

MD5 hash function implementation. More...

Files

file  md5.h
 Public header for MD5 hash function implementation.
 

Functions

struct AVMD5 * av_md5_alloc (void)
 Allocate an AVMD5 context. More...
 
void av_md5_init (struct AVMD5 *ctx)
 Initialize MD5 hashing. More...
 
void av_md5_update (struct AVMD5 *ctx, const uint8_t *src, size_t len)
 Update hash value. More...
 
void av_md5_final (struct AVMD5 *ctx, uint8_t *dst)
 Finish hashing and output digest value. More...
 
void av_md5_sum (uint8_t *dst, const uint8_t *src, size_t len)
 Hash an array of data. More...
 

Variables

const int av_md5_size
 

Detailed Description

MD5 hash function implementation.

Function Documentation

◆ av_md5_alloc()

struct AVMD5 * av_md5_alloc ( void  )

Allocate an AVMD5 context.

Examples
filter_audio.c.

Referenced by main().

◆ av_md5_init()

void av_md5_init ( struct AVMD5 *  ctx)

Initialize MD5 hashing.

Parameters
ctxpointer to the function context (of size av_md5_size)
Examples
filter_audio.c.

Referenced by process_output().

◆ av_md5_update()

void av_md5_update ( struct AVMD5 *  ctx,
const uint8_t *  src,
size_t  len 
)

Update hash value.

Parameters
ctxhash function context
srcinput data to update hash with
leninput data length

◆ av_md5_final()

void av_md5_final ( struct AVMD5 *  ctx,
uint8_t *  dst 
)

Finish hashing and output digest value.

Parameters
ctxhash function context
dstbuffer where output digest value is stored

◆ av_md5_sum()

void av_md5_sum ( uint8_t *  dst,
const uint8_t *  src,
size_t  len 
)

Hash an array of data.

Parameters
dstThe output buffer to write the digest into
srcThe data to hash
lenThe length of the data, in bytes
Examples
filter_audio.c.

Referenced by process_output().

Variable Documentation

◆ av_md5_size

const int av_md5_size
extern