Main Page   Compound List   File List   Compound Members   File Members  

ripemd160.c File Reference

#include "ripemd160.h"

Include dependency graph for ripemd160.c:

Include dependency graph

Defines

#define COMMENT
#define ROL(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
#define F(x, y, z)   ((x) ^ (y) ^ (z))
#define G(x, y, z)   (((x) & (y)) | (~(x) & (z)))
#define H(x, y, z)   (((x) | ~(y)) ^ (z))
#define I(x, y, z)   (((x) & (z)) | ((y) & ~(z)))
#define J(x, y, z)   ((x) ^ ((y) | ~(z)))
#define FF(a, b, c, d, e, x, s)
#define GG(a, b, c, d, e, x, s)
#define HH(a, b, c, d, e, x, s)
#define II(a, b, c, d, e, x, s)
#define JJ(a, b, c, d, e, x, s)
#define FFF(a, b, c, d, e, x, s)
#define GGG(a, b, c, d, e, x, s)
#define HHH(a, b, c, d, e, x, s)
#define III(a, b, c, d, e, x, s)
#define JJJ(a, b, c, d, e, x, s)

Functions

void ripemd160_xform (uns32 *state, uns8 *input)

Define Documentation

#define COMMENT
 

Value:

A contribution to the open-source movement. Jean-Luc Cooke <jlcooke@certainkey.com> CertainKey Inc. Ottawa Ontario Canada

Created: July 20th, 2001

The following program code is released under the GPL license http://www.gnu.org/copyleft/gpl.html

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

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

Value:

      {\
      (a) += F((b), (c), (d)) + (x);\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define FFF( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += F((b), (c), (d)) + (x);\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

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

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

Value:

      {\
      (a) += G((b), (c), (d)) + (x) + 0x5a827999UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define GGG( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += G((b), (c), (d)) + (x) + 0x7a6d76e9UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

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

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

Value:

      {\
      (a) += H((b), (c), (d)) + (x) + 0x6ed9eba1UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define HHH( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += H((b), (c), (d)) + (x) + 0x6d703ef3UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

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

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

Value:

      {\
      (a) += I((b), (c), (d)) + (x) + 0x8f1bbcdcUL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define III( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += I((b), (c), (d)) + (x) + 0x5c4dd124UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

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

#define JJ( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += J((b), (c), (d)) + (x) + 0xa953fd4eUL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define JJJ( a, b, c, d, e, x, s )
 

Value:

      {\
      (a) += J((b), (c), (d)) + (x) + 0x50a28be6UL;\
      (a) = ROL((a), (s)) + (e);\
      (c) = ROL((c), 10);\
   }

#define ROL( x, n )   (((x) << (n)) | ((x) >> (32-(n))))
 


Function Documentation

void ripemd160_xform ( uns32 * state,
uns8 * input )
 



Confidential