s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions
md5c.c File Reference
#include "global.h"
#include "md5.h"
#include <stdint.h>
Include dependency graph for md5c.c:

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

Functions

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

Macro Definition Documentation

◆ F

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

Definition at line 63 of file md5c.c.

◆ 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); \
}
buffer b
Definition: auto-gid.c:10
unsigned long int UINT4
Definition: global.h:32
void c(char *, char *, char *, int, int, int)
Definition: install.c:57
#define ROTATE_LEFT(x, n)
Definition: md5c.c:69
#define F(x, y, z)
Definition: md5c.c:63
struct del * d[CHANNELS]
Definition: qmail-send.c:720

Definition at line 74 of file md5c.c.

◆ G

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

Definition at line 64 of file md5c.c.

◆ 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: md5c.c:64

Definition at line 79 of file md5c.c.

◆ H

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

Definition at line 65 of file md5c.c.

◆ 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: md5c.c:65

Definition at line 84 of file md5c.c.

◆ I

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

Definition at line 66 of file md5c.c.

◆ 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: md5c.c:66

Definition at line 89 of file md5c.c.

◆ ROTATE_LEFT

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

Definition at line 69 of file md5c.c.

◆ S11

#define S11   7

Definition at line 31 of file md5c.c.

◆ S12

#define S12   12

Definition at line 32 of file md5c.c.

◆ S13

#define S13   17

Definition at line 33 of file md5c.c.

◆ S14

#define S14   22

Definition at line 34 of file md5c.c.

◆ S21

#define S21   5

Definition at line 35 of file md5c.c.

◆ S22

#define S22   9

Definition at line 36 of file md5c.c.

◆ S23

#define S23   14

Definition at line 37 of file md5c.c.

◆ S24

#define S24   20

Definition at line 38 of file md5c.c.

◆ S31

#define S31   4

Definition at line 39 of file md5c.c.

◆ S32

#define S32   11

Definition at line 40 of file md5c.c.

◆ S33

#define S33   16

Definition at line 41 of file md5c.c.

◆ S34

#define S34   23

Definition at line 42 of file md5c.c.

◆ S41

#define S41   6

Definition at line 43 of file md5c.c.

◆ S42

#define S42   10

Definition at line 44 of file md5c.c.

◆ S43

#define S43   15

Definition at line 45 of file md5c.c.

◆ S44

#define S44   21

Definition at line 46 of file md5c.c.

Function Documentation

◆ MD5Final()

void MD5Final ( digest  ,
MD5_CTX context 
)

Definition at line 154 of file md5c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MD5Init()

void MD5Init ( MD5_CTX context)

Definition at line 96 of file md5c.c.

Here is the caller graph for this function:

◆ MD5Update()

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

Definition at line 113 of file md5c.c.

Here is the caller graph for this function: