KiCad PCB EDA Suite
md5_hash.cpp File Reference
#include <cstring>
#include <cstdio>
#include <md5_hash.h>

Go to the source code of this file.

Macros

#define DBL_INT_ADD(a, b, c)   if (a > 0xffffffff - c) ++b; a += c;
 
#define ROTLEFT(a, b)   ((a << b) | (a >> (32-b)))
 
#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 FF(a, b, c, d, m, s, t)
 
#define GG(a, b, c, d, m, s, t)
 
#define HH(a, b, c, d, m, s, t)
 
#define II(a, b, c, d, m, s, t)
 

Macro Definition Documentation

#define DBL_INT_ADD (   a,
  b,
 
)    if (a > 0xffffffff - c) ++b; a += c;

Definition at line 12 of file md5_hash.cpp.

Referenced by MD5_HASH::md5_final(), and MD5_HASH::md5_update().

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

Definition at line 15 of file md5_hash.cpp.

#define FF (   a,
  b,
  c,
  d,
  m,
  s,
 
)
Value:
{ a += F(b,c,d) + m + t; \
a = b + ROTLEFT(a,s); }
#define ROTLEFT(a, b)
Definition: md5_hash.cpp:13
#define F(x, y, z)
Definition: md5_hash.cpp:15

Definition at line 20 of file md5_hash.cpp.

Referenced by MD5_HASH::md5_transform().

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

Definition at line 16 of file md5_hash.cpp.

Referenced by S3D::FormatColor().

#define GG (   a,
  b,
  c,
  d,
  m,
  s,
 
)
Value:
{ a += G(b,c,d) + m + t; \
a = b + ROTLEFT(a,s); }
#define ROTLEFT(a, b)
Definition: md5_hash.cpp:13
#define G(x, y, z)
Definition: md5_hash.cpp:16

Definition at line 22 of file md5_hash.cpp.

Referenced by MD5_HASH::md5_transform().

#define H (   x,
  y,
 
)    (x ^ y ^ z)
#define HH (   a,
  b,
  c,
  d,
  m,
  s,
 
)
Value:
{ a += H(b,c,d) + m + t; \
a = b + ROTLEFT(a,s); }
#define ROTLEFT(a, b)
Definition: md5_hash.cpp:13
#define H(x, y, z)
Definition: md5_hash.cpp:17

Definition at line 24 of file md5_hash.cpp.

Referenced by MD5_HASH::md5_transform().

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

Definition at line 18 of file md5_hash.cpp.

Referenced by CBVH_PBRT::Intersect().

#define II (   a,
  b,
  c,
  d,
  m,
  s,
 
)
Value:
{ a += I(b,c,d) + m + t; \
a = b + ROTLEFT(a,s); }
#define ROTLEFT(a, b)
Definition: md5_hash.cpp:13
#define I(x, y, z)
Definition: md5_hash.cpp:18

Definition at line 26 of file md5_hash.cpp.

Referenced by MD5_HASH::md5_transform().

#define ROTLEFT (   a,
 
)    ((a << b) | (a >> (32-b)))

Definition at line 13 of file md5_hash.cpp.