Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cHashMD5.cpp File Reference
#include "pch.h"
#include "Hash/cHashMD5.h"

Namespaces

 GrayLib
 

Macros

#define F(x, y, z)   (z ^ (x & (y ^ z)))
 
#define P(a, b, c, d, k, s, t)   { a += F(b,c,d) + w[k] + t; a = cBits::Rotl<UINT32>(a,s) + b; }
 
#define F(x, y, z)   (y ^ (z & (x ^ y)))
 
#define F(x, y, z)   (x ^ y ^ z)
 
#define F(x, y, z)   (y ^ (x | ~z))
 

Detailed Description

RFC 1321 compliant MD5 implementation The MD5 algorithm was designed by Ron Rivest in 1991. http://www.ietf.org/rfc/rfc1321.txt

Macro Definition Documentation

◆ F [1/4]

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

◆ F [2/4]

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

◆ F [3/4]

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

◆ F [4/4]

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

◆ P

#define P (   a,
  b,
  c,
  d,
  k,
  s,
 
)    { a += F(b,c,d) + w[k] + t; a = cBits::Rotl<UINT32>(a,s) + b; }