libalpm
Arch Linux Package Manager Library
Data Structures | Functions
md5.h File Reference
#include <string.h>
Include dependency graph for md5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  md5_context
 MD5 context structure. More...

Functions

void md5 (const unsigned char *input, size_t ilen, unsigned char output[16])
 Output = MD5( input buffer )
int md5_file (const char *path, unsigned char output[16])
 Output = MD5( file contents )

Function Documentation

void md5 ( const unsigned char *  input,
size_t  ilen,
unsigned char  output[16] 
)

Output = MD5( input buffer )

Parameters:
inputbuffer holding the data
ilenlength of the input data
outputMD5 checksum result

Definition at line 292 of file md5.c.

int md5_file ( const char *  path,
unsigned char  output[16] 
)

Output = MD5( file contents )

Parameters:
pathinput file name
outputMD5 checksum result
Returns:
0 if successful, 1 if fopen failed, or 2 if fread failed

Definition at line 306 of file md5.c.

Referenced by alpm_compute_md5sum().

Here is the caller graph for this function: