Pyrogenesis  trunk
Macros
MD5.cpp File Reference
#include "precompiled.h"
#include "MD5.h"
Include dependency graph for MD5.cpp:

Macros

#define rotlFixed(x, y)   (((x) << (y)) | ((x) >> (32 - (y))))
 
#define F1(x, y, z)   (z ^ (x & (y ^ z)))
 
#define F2(x, y, z)   F1(z, x, y)
 
#define F3(x, y, z)   (x ^ y ^ z)
 
#define F4(x, y, z)   (y ^ (x | ~z))
 
#define MD5STEP(f, w, x, y, z, data, s)   t = w + f(x, y, z) + data; w = rotlFixed(t, s) + x
 

Macro Definition Documentation

◆ F1

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

◆ F2

#define F2 (   x,
  y,
 
)    F1(z, x, y)

◆ F3

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

◆ F4

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

◆ MD5STEP

#define MD5STEP (   f,
  w,
  x,
  y,
  z,
  data,
 
)    t = w + f(x, y, z) + data; w = rotlFixed(t, s) + x

◆ rotlFixed

#define rotlFixed (   x,
 
)    (((x) << (y)) | ((x) >> (32 - (y))))