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

Functions

struct AVRIPEMDav_ripemd_alloc (void)
 Allocate an AVRIPEMD context.
 
int av_ripemd_init (struct AVRIPEMD *context, int bits)
 Initialize RIPEMD hashing.
 
void av_ripemd_update (struct AVRIPEMD *context, const uint8_t *data, unsigned int len)
 Update hash value.
 
void av_ripemd_final (struct AVRIPEMD *context, uint8_t *digest)
 Finish hashing and output digest value.
 

Variables

const int av_ripemd_size
 

Detailed Description

Function Documentation

struct AVRIPEMD* av_ripemd_alloc ( void  )
read

Allocate an AVRIPEMD context.

Definition at line 44 of file ripemd.c.

Referenced by av_hash_alloc().

int av_ripemd_init ( struct AVRIPEMD context,
int  bits 
)

Initialize RIPEMD hashing.

Parameters
contextpointer to the function context (of size av_ripemd_size)
bitsnumber of bits in digest (128, 160, 256 or 320 bits)
Returns
zero if initialization succeeded, -1 otherwise

Definition at line 369 of file ripemd.c.

Referenced by av_hash_init().

void av_ripemd_update ( struct AVRIPEMD context,
const uint8_t data,
unsigned int  len 
)

Update hash value.

Parameters
contexthash function context
datainput data to update hash with
leninput data length

Definition at line 423 of file ripemd.c.

Referenced by av_hash_update(), and av_ripemd_final().

void av_ripemd_final ( struct AVRIPEMD context,
uint8_t digest 
)

Finish hashing and output digest value.

Parameters
contexthash function context
digestbuffer where output digest value is stored

Definition at line 450 of file ripemd.c.

Referenced by av_hash_final().

Variable Documentation

const int av_ripemd_size

Definition at line 42 of file ripemd.c.