BeeCrypt  4.2.1
Data Structures | Functions | Variables
md5.h File Reference

MD5 hash function. More...

#include "beecrypt/beecrypt.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  md5Param
 Holds all the parameters necessary for the MD5 algorithm. More...
 

Functions

void md5Process (md5Param *mp)
 
int md5Reset (md5Param *mp)
 This function resets the parameter block so that it's ready for a new hash. More...
 
int md5Update (md5Param *mp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed. More...
 
int md5Digest (md5Param *mp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest. More...
 

Variables

const hashFunction md5
 Holds the full API description of the MD5 algorithm. More...
 

Detailed Description

MD5 hash function.

Author
Bob Deblier bob.d.nosp@m.ebli.nosp@m.er@te.nosp@m.lene.nosp@m.t.be

Function Documentation

int md5Digest ( md5Param mp,
byte digest 
)

This function finishes the current hash computation and copies the digest value into digest.

Parameters
mpThe hash function's parameter block.
digestThe place to store the 16-byte digest.
Return values
0on success.
void md5Process ( md5Param mp)
int md5Reset ( md5Param mp)

This function resets the parameter block so that it's ready for a new hash.

Parameters
mpThe hash function's parameter block.
Return values
0on success.
int md5Update ( md5Param mp,
const byte data,
size_t  size 
)

This function should be used to pass successive blocks of data to be hashed.

Parameters
mpThe hash function's parameter block.
data
size
Return values
0on success.

Variable Documentation

md5

Holds the full API description of the MD5 algorithm.