GNU libmicrohttpd  0.9.29
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 (struct MD5Context *ctx)
 
void MD5Update (struct MD5Context *ctx, const unsigned char *input, size_t len)
 
void MD5Pad (struct MD5Context *ctx)
 
void MD5Final (unsigned char digest[MD5_DIGEST_SIZE], struct MD5Context *ctx)
 
void MD5Transform (uint32_t state[4], const uint8_t block[MD5_BLOCK_SIZE])
 

Macro Definition Documentation

◆ MD5_BLOCK_SIZE

#define MD5_BLOCK_SIZE   64

Definition at line 23 of file md5.h.

Referenced by MD5Pad(), and MD5Update().

◆ MD5_DIGEST_SIZE

#define MD5_DIGEST_SIZE   16

Definition at line 24 of file md5.h.

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

◆ 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 ( unsigned char  digest[MD5_DIGEST_SIZE],
struct MD5Context ctx 
)

Definition at line 135 of file md5.c.

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

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

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

◆ MD5Init()

void MD5Init ( struct MD5Context ctx)

Definition at line 50 of file md5.c.

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

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

Here is the caller graph for this function:

◆ MD5Pad()

void MD5Pad ( struct MD5Context ctx)

Definition at line 111 of file md5.c.

References MD5Context::count, MD5_BLOCK_SIZE, MD5Update(), PADDING, and PUT_64BIT_LE.

Referenced by MD5Final().

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

◆ MD5Transform()

void MD5Transform ( uint32_t  state[4],
const uint8_t  block[MD5_BLOCK_SIZE] 
)

Definition at line 168 of file md5.c.

References F1, F2, F3, F4, and MD5STEP.

Referenced by MD5Update().

Here is the caller graph for this function:

◆ MD5Update()

void MD5Update ( struct MD5Context ctx,
const unsigned char *  input,
size_t  len 
)

Definition at line 67 of file md5.c.

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

Referenced by calculate_nonce(), digest_calc_ha1(), digest_calc_response(), and MD5Pad().

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