ardour
Macros | Variables
md5.cc File Reference
#include <stdio.h>
#include "pbd/md5.h"

Go to the source code of this file.

Macros

#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)
 

Variables

static const int S11 = 7
 
static const int S12 = 12
 
static const int S13 = 17
 
static const int S14 = 22
 
static const int S21 = 5
 
static const int S22 = 9
 
static const int S23 = 14
 
static const int S24 = 20
 
static const int S31 = 4
 
static const int S32 = 11
 
static const int S33 = 16
 
static const int S34 = 23
 
static const int S41 = 6
 
static const int S42 = 10
 
static const int S43 = 15
 
static const int S44 = 21
 
static unsigned char PADDING [64]
 

Macro Definition Documentation

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

Definition at line 52 of file md5.cc.

#define FF (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5.cc:58
#define F(x, y, z)
Definition: md5.cc:52

Definition at line 62 of file md5.cc.

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

Definition at line 53 of file md5.cc.

#define GG (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5.cc:58
#define G(x, y, z)
Definition: md5.cc:53

Definition at line 67 of file md5.cc.

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

Definition at line 54 of file md5.cc.

#define HH (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define H(x, y, z)
Definition: md5.cc:54
#define ROTATE_LEFT(x, n)
Definition: md5.cc:58

Definition at line 72 of file md5.cc.

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

Definition at line 55 of file md5.cc.

#define II (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5.cc:58
#define I(x, y, z)
Definition: md5.cc:55

Definition at line 77 of file md5.cc.

#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32-(n))))

Definition at line 58 of file md5.cc.

Variable Documentation

unsigned char PADDING[64]
static
Initial value:
= {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 45 of file md5.cc.

const int S11 = 7
static

Definition at line 28 of file md5.cc.

const int S12 = 12
static

Definition at line 29 of file md5.cc.

const int S13 = 17
static

Definition at line 30 of file md5.cc.

const int S14 = 22
static

Definition at line 31 of file md5.cc.

const int S21 = 5
static

Definition at line 32 of file md5.cc.

const int S22 = 9
static

Definition at line 33 of file md5.cc.

const int S23 = 14
static

Definition at line 34 of file md5.cc.

const int S24 = 20
static

Definition at line 35 of file md5.cc.

const int S31 = 4
static

Definition at line 36 of file md5.cc.

const int S32 = 11
static

Definition at line 37 of file md5.cc.

const int S33 = 16
static

Definition at line 38 of file md5.cc.

const int S34 = 23
static

Definition at line 39 of file md5.cc.

const int S41 = 6
static

Definition at line 40 of file md5.cc.

const int S42 = 10
static

Definition at line 41 of file md5.cc.

const int S43 = 15
static

Definition at line 42 of file md5.cc.

const int S44 = 21
static

Definition at line 43 of file md5.cc.