Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
md5.cpp File Reference
#include "global.h"
#include "md5.h"

Go to the source code of this file.

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)
 

Functions

void MD5Init (MD5_CTX *context)
 
void MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen)
 
void MD5Final (unsigned char digest[16], MD5_CTX *context)
 

Macro Definition Documentation

◆ F

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

Definition at line 86 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); \
}
unsigned long int UINT4
Definition global.h:39
#define ROTATE_LEFT(x, n)
Definition md5.cpp:93
#define F(x, y, z)
Definition md5.cpp:86

Definition at line 98 of file md5.cpp.

◆ G

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

Definition at line 87 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:87

Definition at line 103 of file md5.cpp.

◆ H

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

Definition at line 88 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:88

Definition at line 108 of file md5.cpp.

◆ I

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

Definition at line 89 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:89

Definition at line 113 of file md5.cpp.

◆ ROTATE_LEFT

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

Definition at line 93 of file md5.cpp.

◆ S11

#define S11   7

Definition at line 53 of file md5.cpp.

◆ S12

#define S12   12

Definition at line 54 of file md5.cpp.

◆ S13

#define S13   17

Definition at line 55 of file md5.cpp.

◆ S14

#define S14   22

Definition at line 56 of file md5.cpp.

◆ S21

#define S21   5

Definition at line 57 of file md5.cpp.

◆ S22

#define S22   9

Definition at line 58 of file md5.cpp.

◆ S23

#define S23   14

Definition at line 59 of file md5.cpp.

◆ S24

#define S24   20

Definition at line 60 of file md5.cpp.

◆ S31

#define S31   4

Definition at line 61 of file md5.cpp.

◆ S32

#define S32   11

Definition at line 62 of file md5.cpp.

◆ S33

#define S33   16

Definition at line 63 of file md5.cpp.

◆ S34

#define S34   23

Definition at line 64 of file md5.cpp.

◆ S41

#define S41   6

Definition at line 65 of file md5.cpp.

◆ S42

#define S42   10

Definition at line 66 of file md5.cpp.

◆ S43

#define S43   15

Definition at line 67 of file md5.cpp.

◆ S44

#define S44   21

Definition at line 68 of file md5.cpp.

Function Documentation

◆ MD5Final()

void MD5Final ( unsigned char digest[16],
MD5_CTX * context )

Definition at line 176 of file md5.cpp.

◆ MD5Init()

void MD5Init ( MD5_CTX * context)

Definition at line 121 of file md5.cpp.

◆ MD5Update()

void MD5Update ( MD5_CTX * context,
unsigned char * input,
unsigned int inputLen )

Definition at line 136 of file md5.cpp.