FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
MD5
Crypto and Hashing

Functions

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

Variables

const int av_md5_size
 

Detailed Description

Function Documentation

struct AVMD5* av_md5_alloc ( void  )
read

Allocate an AVMD5 context.

Definition at line 47 of file md5.c.

Referenced by av_hash_alloc(), av_hmac_alloc(), do_adobe_auth(), do_llnw_auth(), flac_encode_init(), make_digest_auth(), and md5_open().

void av_md5_init ( struct AVMD5 ctx)

Initialize MD5 hashing.

Parameters
ctxpointer to the function context (of size av_md5_size)

Definition at line 138 of file md5.c.

Referenced by av_hash_init(), av_hmac_alloc(), av_md5_sum(), do_adobe_auth(), do_llnw_auth(), flac_encode_init(), make_digest_auth(), and md5_open().

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

Update hash value.

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

Definition at line 148 of file md5.c.

Referenced by av_hash_update(), av_hmac_alloc(), av_md5_final(), av_md5_sum(), do_adobe_auth(), do_llnw_auth(), md5_write(), update_md5_strings(), and update_md5_sum().

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

Definition at line 183 of file md5.c.

Referenced by av_hash_final(), av_hmac_alloc(), av_md5_sum(), do_adobe_auth(), do_llnw_auth(), flac_encode_frame(), make_digest_auth(), and md5_close().

void av_md5_sum ( uint8_t dst,
const uint8_t src,
const int  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

Definition at line 198 of file md5.c.

Referenced by av_lfg_init(), and ff_rdt_calc_response_and_checksum().

Variable Documentation

const int av_md5_size

Definition at line 45 of file md5.c.