The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

m_ripemd160.cpp File Reference

#include "inspircd.h"
#include "m_hash.h"

Include dependency graph for m_ripemd160.cpp:

Go to the source code of this file.

Classes

class  ModuleRIPEMD160

Defines

#define RMDsize   160
#define BYTES_TO_DWORD(strptr)
#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)

Typedefs

typedef unsigned char byte
typedef unsigned int dword


Define Documentation

#define BYTES_TO_DWORD strptr   ) 
 

Value:

(((dword) *((strptr)+3) << 24) | \
             ((dword) *((strptr)+2) << 16) | \
             ((dword) *((strptr)+1) <<  8) | \
             ((dword) *(strptr)))

Definition at line 72 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::RMD().

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

Definition at line 83 of file m_ripemd160.cpp.

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

Value:

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

Definition at line 91 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Value:

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

Definition at line 121 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Definition at line 84 of file m_ripemd160.cpp.

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

Value:

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

Definition at line 97 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Value:

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

Definition at line 127 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Definition at line 85 of file m_ripemd160.cpp.

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

Value:

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

Definition at line 103 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Value:

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

Definition at line 133 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Definition at line 86 of file m_ripemd160.cpp.

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

Value:

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

Definition at line 109 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Value:

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

Definition at line 139 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Definition at line 87 of file m_ripemd160.cpp.

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

Value:

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

Definition at line 115 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

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

Value:

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

Definition at line 145 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::compress().

#define RMDsize   160
 

Definition at line 61 of file m_ripemd160.cpp.

Referenced by ModuleRIPEMD160::OnRequest(), and ModuleRIPEMD160::RMD().

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

Definition at line 80 of file m_ripemd160.cpp.


Typedef Documentation

typedef unsigned char byte
 

Definition at line 64 of file m_ripemd160.cpp.

typedef unsigned int dword
 

Definition at line 65 of file m_ripemd160.cpp.