s/qmail 4.3.21
Next generation secure email transport
Loading...
Searching...
No Matches
md5c.c File Reference
#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)
#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)))
void z(char *, char *, int, int, int, int)
Definition install.c:111

Definition at line 62 of file md5c.c.

◆ FF

#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); \
}
buffer b
Definition auto-gid.c:10
#define ROTATE_LEFT(x, n)
Definition md5c.c:68
#define F(x, y, z)
Definition md5c.c:62
struct del * d[CHANNELS]
Definition qmail-send.c:726

Definition at line 73 of file md5c.c.

◆ G

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

Definition at line 63 of file md5c.c.

◆ GG

#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 G(x, y, z)
Definition md5c.c:63

Definition at line 78 of file md5c.c.

◆ H

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

Definition at line 64 of file md5c.c.

◆ HH

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

Definition at line 83 of file md5c.c.

◆ I

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

Definition at line 65 of file md5c.c.

◆ II

#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 I(x, y, z)
Definition md5c.c:65

Definition at line 88 of file md5c.c.

◆ ROTATE_LEFT

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

Definition at line 68 of file md5c.c.

◆ S11

#define S11   7

Definition at line 32 of file md5c.c.

◆ S12

#define S12   12

Definition at line 33 of file md5c.c.

◆ S13

#define S13   17

Definition at line 34 of file md5c.c.

◆ S14

#define S14   22

Definition at line 35 of file md5c.c.

◆ S21

#define S21   5

Definition at line 36 of file md5c.c.

◆ S22

#define S22   9

Definition at line 37 of file md5c.c.

◆ S23

#define S23   14

Definition at line 38 of file md5c.c.

◆ S24

#define S24   20

Definition at line 39 of file md5c.c.

◆ S31

#define S31   4

Definition at line 40 of file md5c.c.

◆ S32

#define S32   11

Definition at line 41 of file md5c.c.

◆ S33

#define S33   16

Definition at line 42 of file md5c.c.

◆ S34

#define S34   23

Definition at line 43 of file md5c.c.

◆ S41

#define S41   6

Definition at line 44 of file md5c.c.

◆ S42

#define S42   10

Definition at line 45 of file md5c.c.

◆ S43

#define S43   15

Definition at line 46 of file md5c.c.

◆ S44

#define S44   21

Definition at line 47 of file md5c.c.

Function Documentation

◆ MD5Final()

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

Definition at line 144 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 95 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 109 of file md5c.c.

Here is the caller graph for this function: