GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
md5.h File Reference
#include "mhd_options.h"
#include <stdint.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 MHD_MD5Init (void *ctx_)
 
void MHD_MD5Update (void *ctx_, const uint8_t *input, size_t len)
 
void MHD_MD5Final (void *ctx_, uint8_t digest[MD5_DIGEST_SIZE])
 

Macro Definition Documentation

◆ MD5_BLOCK_SIZE

#define MD5_BLOCK_SIZE   64

Definition at line 27 of file md5.h.

◆ MD5_DIGEST_SIZE

#define MD5_DIGEST_SIZE   16

Definition at line 28 of file md5.h.

◆ MD5_DIGEST_STRING_LENGTH

#define MD5_DIGEST_STRING_LENGTH   (MD5_DIGEST_SIZE * 2 + 1)

Definition at line 29 of file md5.h.

Function Documentation

◆ MHD_MD5Final()

void MHD_MD5Final ( void *  ctx_,
uint8_t  digest[MD5_DIGEST_SIZE] 
)

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

Parameters
ctx_must be a struct MD5Context *

Final wrapup, fill in digest and zero out ctx.

Parameters
ctxmust be a struct MD5Context *

Definition at line 67 of file md5.c.

References _MHD_PUT_32BIT_LE, _MHD_PUT_64BIT_LE_SAFE(), _MHD_UINT32_ALIGN, MD5Context::buffer, MD5Context::count, MD5_BLOCK_SIZE, MD5_BYTES_IN_WORD, MD5_DIGEST_SIZE, MD5Transform(), mhd_assert, NULL, and MD5Context::state.

Here is the call graph for this function:

◆ MHD_MD5Init()

void MHD_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 43 of file md5.c.

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

◆ MHD_MD5Update()

void MHD_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 269 of file md5.c.

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

Here is the call graph for this function: