Main Page   Compound List   File List   Compound Members   File Members  

md5.c File Reference

#include <stdio.h>
#include "md5.h"

Include dependency graph for md5.c:

Include dependency graph

Defines

#define S11   7
#define S12   12
#define S13   17
#define S14   22
#define S21   5
#define S22   9
#define S23   14
#define S24   20
#define S31   4
#define S32   11
#define S33   16
#define S34   23
#define S41   6
#define S42   10
#define S43   15
#define S44   21
#define ENCODE_DECODE   0
#define F(x, y, z)   (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z)   (((x) & (z)) | ((y) & (~z)))
#define H(x, y, z)   ((x) ^ (y) ^ (z))
#define I(x, y, z)   ((y) ^ ((x) | (~z)))
#define FF(a, b, c, d, x, s, ac)
#define GG(a, b, c, d, x, s, ac)
#define HH(a, b, c, d, x, s, ac)
#define II(a, b, c, d, x, s, ac)

Functions

void md5_transform (uns32[4], uns8[64])
void md5_init (md5_context *context)
void md5_update (md5_context *context, uns8 *input, uns32 inputLen)
void md5_final (uns8 *digest, md5_context *context)
void md5_transform (uns32 *state, uns8 *block)

Define Documentation

#define ENCODE_DECODE   0
 

#define F( x, y, z )   (((x) & (y)) | ((~x) & (z)))
 

#define FF( a, b, c, d, x, s, ac )
 

Value:

  { \
  (a) += F ((b), (c), (d)) + (x) + (uns32)(ac); \
  (a) = ROLuns32((a), (s)); \
  (a) += (b); \
}

#define G( x, y, z )   (((x) & (z)) | ((y) & (~z)))
 

#define GG( a, b, c, d, x, s, ac )
 

Value:

  { \
  (a) += G ((b), (c), (d)) + (x) + (uns32)(ac); \
  (a) = ROLuns32((a), (s)); \
  (a) += (b); \
}

#define H( x, y, z )   ((x) ^ (y) ^ (z))
 

#define HH( a, b, c, d, x, s, ac )
 

Value:

  { \
  (a) += H ((b), (c), (d)) + (x) + (uns32)(ac); \
  (a) = ROLuns32((a), (s)); \
  (a) += (b); \
}

#define I( x, y, z )   ((y) ^ ((x) | (~z)))
 

#define II( a, b, c, d, x, s, ac )
 

Value:

  { \
  (a) += I ((b), (c), (d)) + (x) + (uns32)(ac); \
  (a) = ROLuns32((a), (s)); \
  (a) += (b); \
}

#define S11   7
 

#define S12   12
 

#define S13   17
 

#define S14   22
 

#define S21   5
 

#define S22   9
 

#define S23   14
 

#define S24   20
 

#define S31   4
 

#define S32   11
 

#define S33   16
 

#define S34   23
 

#define S41   6
 

#define S42   10
 

#define S43   15
 

#define S44   21
 


Function Documentation

void md5_final ( uns8 * digest,
md5_context * context )
 

void md5_init ( md5_context * context )
 

void md5_transform ( uns32 * state,
uns8 * block )
 

void md5_transform ( uns32[4],
uns8[64] )
 

void md5_update ( md5_context * context,
uns8 * input,
uns32 inputLen )
 



Confidential