DCL 4.0
Loading...
Searching...
No Matches
MD5.cpp File Reference
#include <dcl/Config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <dcl/Object.h>
#include <dcl/MD5.h>

Go to the source code of this file.

Classes

struct  MD5_CTX

Macros

#define S11   7
#define S12   12
#define S13   17
#define S14   22
#define S21   5
#define S22   9
#define S23   14
#define S24   20
#define S31   4
#define S32   11
#define S33   16
#define S34   23
#define S41   6
#define S42   10
#define S43   15
#define S44   21
#define F(x, y, z)
#define G(x, y, z)
#define H(x, y, z)
#define I(x, y, z)
#define ROTATE_LEFT(x, 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)

Typedefs

typedef unsigned short int UINT2
typedef unsigned long int UINT4
typedef unsigned char * POINTER

Macro Definition Documentation

◆ F

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

Definition at line 173 of file MD5.cpp.

◆ FF

#define FF ( a,
b,
c,
d,
x,
s,
ac )
Value:
{ \
(a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition MD5.cpp:179
#define F(x, y, z)
Definition MD5.cpp:173
unsigned long int UINT4
Definition MD5.cpp:30

Definition at line 183 of file MD5.cpp.

183#define FF(a, b, c, d, x, s, ac) { \
184 (a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \
185 (a) = ROTATE_LEFT ((a), (s)); \
186 (a) += (b); \
187 }

◆ G

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

Definition at line 174 of file MD5.cpp.

◆ GG

#define GG ( a,
b,
c,
d,
x,
s,
ac )
Value:
{ \
(a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define G(x, y, z)
Definition MD5.cpp:174

Definition at line 188 of file MD5.cpp.

188#define GG(a, b, c, d, x, s, ac) { \
189 (a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \
190 (a) = ROTATE_LEFT ((a), (s)); \
191 (a) += (b); \
192 }

◆ H

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

Definition at line 175 of file MD5.cpp.

◆ HH

#define HH ( a,
b,
c,
d,
x,
s,
ac )
Value:
{ \
(a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define H(x, y, z)
Definition MD5.cpp:175

Definition at line 193 of file MD5.cpp.

193#define HH(a, b, c, d, x, s, ac) { \
194 (a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \
195 (a) = ROTATE_LEFT ((a), (s)); \
196 (a) += (b); \
197 }

◆ I

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

Definition at line 176 of file MD5.cpp.

◆ II

#define II ( a,
b,
c,
d,
x,
s,
ac )
Value:
{ \
(a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define I(x, y, z)
Definition MD5.cpp:176

Definition at line 198 of file MD5.cpp.

198#define II(a, b, c, d, x, s, ac) { \
199 (a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \
200 (a) = ROTATE_LEFT ((a), (s)); \
201 (a) += (b); \
202 }

◆ ROTATE_LEFT

#define ROTATE_LEFT ( x,
n )
Value:
(((x) << (n)) | ((x) >> (32-(n))))
void CharsetConvertException *size_t n
Definition SQLField.cpp:253

Definition at line 179 of file MD5.cpp.

◆ S11

#define S11   7

Definition at line 139 of file MD5.cpp.

◆ S12

#define S12   12

Definition at line 140 of file MD5.cpp.

◆ S13

#define S13   17

Definition at line 141 of file MD5.cpp.

◆ S14

#define S14   22

Definition at line 142 of file MD5.cpp.

◆ S21

#define S21   5

Definition at line 143 of file MD5.cpp.

◆ S22

#define S22   9

Definition at line 144 of file MD5.cpp.

◆ S23

#define S23   14

Definition at line 145 of file MD5.cpp.

◆ S24

#define S24   20

Definition at line 146 of file MD5.cpp.

◆ S31

#define S31   4

Definition at line 147 of file MD5.cpp.

◆ S32

#define S32   11

Definition at line 148 of file MD5.cpp.

◆ S33

#define S33   16

Definition at line 149 of file MD5.cpp.

◆ S34

#define S34   23

Definition at line 150 of file MD5.cpp.

◆ S41

#define S41   6

Definition at line 151 of file MD5.cpp.

◆ S42

#define S42   10

Definition at line 152 of file MD5.cpp.

◆ S43

#define S43   15

Definition at line 153 of file MD5.cpp.

◆ S44

#define S44   21

Definition at line 154 of file MD5.cpp.

Typedef Documentation

◆ POINTER

typedef unsigned char* POINTER

Definition at line 31 of file MD5.cpp.

◆ UINT2

typedef unsigned short int UINT2

Definition at line 29 of file MD5.cpp.

◆ UINT4

typedef unsigned long int UINT4

Definition at line 30 of file MD5.cpp.