RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MD5.cpp File Reference
#include "MD5.h"
#include <sstream>
#include <iomanip>
#include <ios>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for MD5.cpp:

Go to the source code of this file.

Classes

class  rsb::util::MD5Hasher
 

Namespaces

 rsb
 
 rsb::util
 

Macros

#define rol(x, n)   ( ((x) << (n)) | ((x) >> (32-(n))) )
 Rotate a 32 bit integer by n bytes. More...
 
#define FF(b, c, d)   (d ^ (b & (c ^ d)))
 
#define FG(b, c, d)   FF (d, b, c)
 
#define FH(b, c, d)   (b ^ c ^ d)
 
#define FI(b, c, d)   (c ^ (b | ~d))
 
#define OP(a, b, c, d, s, T)
 
#define OP(f, a, b, c, d, k, s, T)
 
#define X(a)   do { *(u32*)p = (*this).a ; p += 4; } while(0)
 

Functions

void rsb::util::freeMd5Hash (void *hash)
 
ostream & rsb::util::operator<< (ostream &stream, const MD5 &sum)
 

Macro Definition Documentation

#define FF (   b,
  c,
 
)    (d ^ (b & (c ^ d)))

Definition at line 71 of file MD5.cpp.

#define FG (   b,
  c,
 
)    FF (d, b, c)

Definition at line 72 of file MD5.cpp.

Referenced by rsb::util::MD5Hasher::transform().

#define FH (   b,
  c,
 
)    (b ^ c ^ d)

Definition at line 73 of file MD5.cpp.

Referenced by rsb::util::MD5Hasher::transform().

#define FI (   b,
  c,
 
)    (c ^ (b | ~d))

Definition at line 74 of file MD5.cpp.

Referenced by rsb::util::MD5Hasher::transform().

#define OP (   a,
  b,
  c,
  d,
  s,
 
)
Value:
do \
{ \
a += FF (b, c, d) + (*cwp++) + T; \
a = rol(a, s); \
a += b; \
} while (0)
#define rol(x, n)
Rotate a 32 bit integer by n bytes.
Definition: MD5.cpp:64
#define FF(b, c, d)
Definition: MD5.cpp:71

Referenced by rsb::util::MD5Hasher::transform().

#define OP (   f,
  a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
do \
{ \
a += f (b, c, d) + correct_words[k] + T; \
a = rol(a, s); \
a += b; \
} while (0)
#define rol(x, n)
Rotate a 32 bit integer by n bytes.
Definition: MD5.cpp:64
#define rol (   x,
 
)    ( ((x) << (n)) | ((x) >> (32-(n))) )

Rotate a 32 bit integer by n bytes.

Definition at line 64 of file MD5.cpp.

#define X (   a)    do { *(u32*)p = (*this).a ; p += 4; } while(0)