All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
md4.h File Reference

Structures and prototypes for md4. More...

#include <string.h>
+ Include dependency graph for md4.h:

Go to the source code of this file.

Data Structures

struct  FR_MD4Context
 

Macros

#define MD4_BLOCK_LENGTH   64
 
#define MD4_DIGEST_LENGTH   16
 
#define MD4_DIGEST_STRING_LENGTH   (MD4_DIGEST_LENGTH * 2 + 1)
 

Typedefs

typedef struct FR_MD4Context FR_MD4_CTX
 

Functions

void fr_md4_calc (uint8_t out[MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
 Calculate the MD4 hash of the contents of a buffer. More...
 
void void fr_md4_final (uint8_t out[MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx) CC_BOUNDED(__minbytes__
 
void fr_md4_init (FR_MD4_CTX *ctx)
 Initialise a new MD4 context. More...
 
void fr_md4_transform (uint32_t buf[4], uint8_t const inc[MD4_BLOCK_LENGTH]) CC_BOUNDED(__minbytes__
 
void fr_md4_update (FR_MD4_CTX *ctx, uint8_t const *in, size_t inlen) CC_BOUNDED(__string__
 

Variables

void MD4_BLOCK_LENGTH
 
void void MD4_DIGEST_LENGTH
 

Detailed Description

Structures and prototypes for md4.

Id:
6c8f5faf40a7a485f8eb174f28f25bcf4cfa2bbb
Note
license is LGPL, but largely derived from a public domain source.

Definition in file md4.h.


Data Structure Documentation

struct FR_MD4Context

Definition at line 58 of file md4.h.

Data Fields
uint8_t buffer[MD4_BLOCK_LENGTH] Input buffer.
uint32_t count[2] Number of bits, mod 2^64.
uint32_t state[4] State.

Macro Definition Documentation

#define MD4_BLOCK_LENGTH   64

Definition at line 55 of file md4.h.

#define MD4_DIGEST_LENGTH   16

Definition at line 36 of file md4.h.

#define MD4_DIGEST_STRING_LENGTH   (MD4_DIGEST_LENGTH * 2 + 1)

Definition at line 56 of file md4.h.

Typedef Documentation

typedef struct FR_MD4Context FR_MD4_CTX

Function Documentation

void fr_md4_calc ( uint8_t  out[MD4_DIGEST_LENGTH],
uint8_t const *  in,
size_t  inlen 
)

Calculate the MD4 hash of the contents of a buffer.

Parameters
[out]outWhere to write the MD4 digest. Must be a minimum of MD4_DIGEST_LENGTH.
[in]inData to hash.
[in]inlenLength of the data.

Definition at line 24 of file md4.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void void fr_md4_final ( uint8_t  out[MD4_DIGEST_LENGTH],
FR_MD4_CTX ctx 
)

+ Here is the caller graph for this function:

void fr_md4_init ( FR_MD4_CTX ctx)

Initialise a new MD4 context.

Set bit count to 0 and buffer to mysterious initialization constants.

Parameters
[out]ctxto initialise.

Definition at line 115 of file md4.c.

+ Here is the caller graph for this function:

void fr_md4_transform ( uint32_t  buf[4],
uint8_t const  inc[MD4_BLOCK_LENGTH] 
)
void fr_md4_update ( FR_MD4_CTX ctx,
uint8_t const *  in,
size_t  inlen 
)

+ Here is the caller graph for this function:

Variable Documentation

void MD4_BLOCK_LENGTH

Definition at line 71 of file md4.h.

void void MD4_DIGEST_LENGTH

Definition at line 68 of file md4.h.