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

MD4 hash function. More...

#include "beecrypt/beecrypt.h"
Include dependency graph for md4.h:

Go to the source code of this file.

Data Structures

struct  md4Param
 Holds all the parameters necessary for the MD4 algorithm. More...
 

Functions

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

Variables

const hashFunction md4
 Holds the full API description of the MD4 algorithm. More...
 

Detailed Description

MD4 hash function.

Author
Jeff Johnson jbj@r.nosp@m.pm5..nosp@m.org
Bob Deblier bob.d.nosp@m.ebli.nosp@m.er@te.nosp@m.lene.nosp@m.t.be

Function Documentation

int md4Digest ( md4Param 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 md4Process ( md4Param mp)
int md4Reset ( md4Param 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 md4Update ( md4Param 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

md4

Holds the full API description of the MD4 algorithm.