Namespaces | Defines

MD5.cpp File Reference

#include "StdAfx.h"
#include "MD5.h"
#include <CoreLabs/strings.h>
#include "../memory.h"
#include "../logging.h"
#include <CoreLabs/sstream.h>

Namespaces

namespace  xl7
namespace  xl7::utilities

Defines

#define F(x, y, z)   (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z)   (((x) & (z)) | ((y) & (~z)))
#define H(x, y, z)   ((x) ^ (y) ^ (z))
#define I(x, y, z)   ((y) ^ ((x) | (~z)))
#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
#define FF(a, b, c, d, x, s, ac)
#define GG(a, b, c, d, x, s, ac)
#define HH(a, b, c, d, x, s, ac)
#define II(a, b, c, d, x, s, ac)

Define Documentation

#define F (   x,
  y,
  z 
)    (((x) & (y)) | ((~x) & (z)))
#define FF (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
    (a) += F ((b), (c), (d)) + (x) + static_cast<unsigned long>(ac); \
    (a) = ROTATE_LEFT ((a), (s)); \
    (a) += (b); }
#define G (   x,
  y,
  z 
)    (((x) & (z)) | ((y) & (~z)))
#define GG (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
    (a) += G ((b), (c), (d)) + (x) + static_cast<unsigned long>(ac); \
    (a) = ROTATE_LEFT ((a), (s)); \
    (a) += (b); }
#define H (   x,
  y,
  z 
)    ((x) ^ (y) ^ (z))
#define HH (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
    (a) += H ((b), (c), (d)) + (x) + static_cast<unsigned long>(ac); \
    (a) = ROTATE_LEFT ((a), (s)); \
    (a) += (b); }
#define I (   x,
  y,
  z 
)    ((y) ^ ((x) | (~z)))
#define II (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
    (a) += I ((b), (c), (d)) + (x) + static_cast<unsigned long>(ac); \
    (a) = ROTATE_LEFT ((a), (s)); \
    (a) += (b); }
#define ROTATE_LEFT (   x,
  n 
)    (((x) << (n)) | ((x) >> (32-(n))))
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines