doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
md5.c File Reference
#include "setup.h"
#include <string.h>
#include "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)   (((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)
 

Typedefs

typedef unsigned int UINT4
 
typedef struct md5_ctx MD5_CTX
 

Functions

void Curl_md5it (unsigned char *outbuffer, unsigned char *input)
 

Macro Definition Documentation

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

Definition at line 103 of file md5.c.

#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 F(x, y, z)
Definition: md5.c:103
#define ROTATE_LEFT(x, n)
Definition: md5.c:110
GLdouble s
Definition: glext.h:2935
GLenum GLint x
Definition: glext.h:2849
const GLubyte * c
Definition: glext.h:4677
unsigned int UINT4
Definition: md5.c:56
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662

Definition at line 115 of file md5.c.

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

Definition at line 104 of file md5.c.

#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 ROTATE_LEFT(x, n)
Definition: md5.c:110
GLdouble s
Definition: glext.h:2935
GLenum GLint x
Definition: glext.h:2849
const GLubyte * c
Definition: glext.h:4677
unsigned int UINT4
Definition: md5.c:56
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662
#define G(x, y, z)
Definition: md5.c:104

Definition at line 120 of file md5.c.

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

Definition at line 105 of file md5.c.

#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 ROTATE_LEFT(x, n)
Definition: md5.c:110
GLdouble s
Definition: glext.h:2935
GLenum GLint x
Definition: glext.h:2849
const GLubyte * c
Definition: glext.h:4677
#define H(x, y, z)
Definition: md5.c:105
unsigned int UINT4
Definition: md5.c:56
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662

Definition at line 125 of file md5.c.

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

Definition at line 106 of file md5.c.

#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 ROTATE_LEFT(x, n)
Definition: md5.c:110
GLdouble s
Definition: glext.h:2935
GLenum GLint x
Definition: glext.h:2849
const GLubyte * c
Definition: glext.h:4677
unsigned int UINT4
Definition: md5.c:56
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662
#define I(x, y, z)
Definition: md5.c:106

Definition at line 130 of file md5.c.

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

Definition at line 110 of file md5.c.

#define S11   7

Definition at line 74 of file md5.c.

#define S12   12

Definition at line 75 of file md5.c.

#define S13   17

Definition at line 76 of file md5.c.

#define S14   22

Definition at line 77 of file md5.c.

#define S21   5

Definition at line 78 of file md5.c.

#define S22   9

Definition at line 79 of file md5.c.

#define S23   14

Definition at line 80 of file md5.c.

#define S24   20

Definition at line 81 of file md5.c.

#define S31   4

Definition at line 82 of file md5.c.

#define S32   11

Definition at line 83 of file md5.c.

#define S33   16

Definition at line 84 of file md5.c.

#define S34   23

Definition at line 85 of file md5.c.

#define S41   6

Definition at line 86 of file md5.c.

#define S42   10

Definition at line 87 of file md5.c.

#define S43   15

Definition at line 88 of file md5.c.

#define S44   21

Definition at line 89 of file md5.c.

Typedef Documentation

typedef struct md5_ctx MD5_CTX

Definition at line 65 of file md5.c.

typedef unsigned int UINT4

Definition at line 56 of file md5.c.

Function Documentation

void Curl_md5it ( unsigned char *  outbuffer,
unsigned char *  input 
)

Definition at line 341 of file md5.c.