GNU libmicrohttpd  0.9.63
md5.h File Reference
#include "platform.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  MD5Context
 

Macros

#define MD5_BLOCK_SIZE   64
 
#define MD5_DIGEST_SIZE   16
 
#define MD5_DIGEST_STRING_LENGTH   (MD5_DIGEST_SIZE * 2 + 1)
 

Functions

void MD5Init (void *ctx_)
 
void MD5Update (void *ctx_, const uint8_t *input, size_t len)
 
void MD5Final (void *ctx_, unsigned char digest[MD5_DIGEST_SIZE])
 

Macro Definition Documentation

◆ MD5_BLOCK_SIZE

#define MD5_BLOCK_SIZE   64

Definition at line 23 of file md5.h.

Referenced by MD5Pad(), MD5Transform(), and MD5Update().

◆ MD5_DIGEST_SIZE

#define MD5_DIGEST_SIZE   16

Definition at line 24 of file md5.h.

◆ MD5_DIGEST_STRING_LENGTH

#define MD5_DIGEST_STRING_LENGTH   (MD5_DIGEST_SIZE * 2 + 1)

Definition at line 25 of file md5.h.

Function Documentation

◆ MD5Final()

void MD5Final ( void *  ctx_,
unsigned char  digest[MD5_DIGEST_SIZE] 
)

Final wrapup–call MD5Pad, fill in digest and zero out ctx.

Parameters
ctx_must be a struct MD5Context *

Final wrapup–call MD5Pad, fill in digest and zero out ctx.

Parameters
ctxmust be a struct MD5Context *

Definition at line 99 of file md5.c.

References MD5Pad(), PUT_32BIT_LE, and MD5Context::state.

Here is the call graph for this function:

◆ MD5Init()

void MD5Init ( void *  ctx_)

Start MD5 accumulation. Set bit count to 0 and buffer to mysterious initialization constants.

Parameters
ctx_must be a struct MD5Context *

Start MD5 accumulation. Set bit count to 0 and buffer to mysterious initialization constants.

Parameters
ctxmust be a struct MD5Context *

Definition at line 53 of file md5.c.

References MD5Context::count, and MD5Context::state.

◆ MD5Update()

void MD5Update ( void *  ctx_,
const uint8_t *  input,
size_t  len 
)

Update context to reflect the concatenation of another buffer full of bytes.

Parameters
ctx_must be a struct MD5Context *

Update context to reflect the concatenation of another buffer full of bytes.

Definition at line 237 of file md5.c.

References MD5Context::buffer, MD5Context::count, MD5_BLOCK_SIZE, MD5Transform(), and MD5Context::state.

Referenced by MD5Pad().

Here is the call graph for this function:
Here is the caller graph for this function: