Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
md5.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  md5_state_s
 Define the state of the MD5 Algorithm. More...
 

Typedefs

typedef unsigned char md5_byte_t
 
typedef unsigned int md5_word_t
 
typedef struct md5_state_s md5_state_t
 Define the state of the MD5 Algorithm.
 

Functions

void md5_init (md5_state_t *pms)
 Initialize the algorithm.
 
void md5_append (md5_state_t *pms, const md5_byte_t *data, int nbytes)
 Append a string to the message.
 
void md5_finish (md5_state_t *pms, md5_byte_t digest[16])
 Finish the message and return the digest.
 

Typedef Documentation

◆ md5_byte_t

typedef unsigned char md5_byte_t

Definition at line 72 of file md5.h.

◆ md5_state_t

typedef struct md5_state_s md5_state_t

Define the state of the MD5 Algorithm.

◆ md5_word_t

typedef unsigned int md5_word_t

Definition at line 73 of file md5.h.

Function Documentation

◆ md5_append()

void md5_append ( md5_state_t pms,
const md5_byte_t data,
int  nbytes 
)

Append a string to the message.

Definition at line 334 of file md5.c.

References md5_state_s::buf, md5_state_s::count, and md5_process().

Referenced by md5_finish(), and md5hexdigest().

◆ md5_finish()

void md5_finish ( md5_state_t pms,
md5_byte_t  digest[16] 
)

Finish the message and return the digest.

Definition at line 372 of file md5.c.

References md5_state_s::abcd, md5_state_s::count, and md5_append().

Referenced by md5hexdigest().

◆ md5_init()

void md5_init ( md5_state_t pms)

Initialize the algorithm.

Definition at line 324 of file md5.c.

References md5_state_s::abcd, md5_state_s::count, and T_MASK.

Referenced by md5hexdigest().