Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Functions
md5.h File Reference

MD5 message digest algorithm (hash function) More...

Go to the source code of this file.

Data Structures

struct  md5_context
 / More...
 

Functions

void md5_starts (md5_context *ctx)
 MD5 context setup. More...
 
void md5_update (md5_context *ctx, const unsigned char *input, int ilen)
 MD5 process buffer. More...
 
void md5_finish (md5_context *ctx, unsigned char output[16])
 MD5 final digest. More...
 
void md5 (unsigned char *input, int ilen, unsigned char output[16])
 Output = MD5( input buffer ) More...
 

Detailed Description

MD5 message digest algorithm (hash function)

Warning
MD5 is considered a weak message digest and its use constitutes a security risk. We recommend considering stronger message digests instead.

Definition in file md5.h.

Function Documentation

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

Output = MD5( input buffer )

Parameters
inputbuffer holding the data
ilenlength of the input data
outputMD5 checksum result
void md5_finish ( md5_context ctx,
unsigned char  output[16] 
)

MD5 final digest.

Parameters
ctxMD5 context
outputMD5 checksum result
void md5_starts ( md5_context ctx)

MD5 context setup.

Parameters
ctxcontext to be initialized
void md5_update ( md5_context ctx,
const unsigned char *  input,
int  ilen 
)

MD5 process buffer.

Parameters
ctxMD5 context
inputbuffer holding the data
ilenlength of the input data
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.