|
FreeBSD kernel kern code
|
#include <sys/cdefs.h>#include <sys/param.h>#include <sys/systm.h>#include <sys/md4.h>
Go to the source code of this file.
Macros | |
| #define | PROTO_LIST(list) list |
| #define | S11 3 |
| #define | S12 7 |
| #define | S13 11 |
| #define | S14 19 |
| #define | S21 3 |
| #define | S22 5 |
| #define | S23 9 |
| #define | S24 13 |
| #define | S31 3 |
| #define | S32 9 |
| #define | S33 11 |
| #define | S34 15 |
| #define | F(x, y, z) (((x) & (y)) | ((~x) & (z))) |
| #define | G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) |
| #define | H(x, y, z) ((x) ^ (y) ^ (z)) |
| #define | ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) |
| #define | FF(a, b, c, d, x, s) |
| #define | GG(a, b, c, d, x, s) |
| #define | HH(a, b, c, d, x, s) |
Typedefs | |
| typedef unsigned char * | POINTER |
| typedef u_int16_t | UINT2 |
| typedef u_int32_t | UINT4 |
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| static void MD4Transform | PROTO_LIST ((UINT4[4], const unsigned char[64])) |
| static void Encode | PROTO_LIST ((unsigned char *, UINT4 *, unsigned int)) |
| static void Decode | PROTO_LIST ((UINT4 *, const unsigned char *, unsigned int)) |
| void | MD4Init (MD4_CTX *context) |
| void | MD4Update (MD4_CTX *context, const unsigned char *input, unsigned int inputLen) |
| void | MD4Pad (MD4_CTX *context) |
| void | MD4Final (digest, MD4_CTX *context) |
| static void | MD4Transform (state, block) |
| static void | Encode (unsigned char *output, UINT4 *input, unsigned int len) |
| static void | Decode (UINT4 *output, const unsigned char *input, unsigned int len) |
Variables | |
| static unsigned char | PADDING [64] |
| #define FF | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s | |||
| ) |
Definition at line 78 of file md4c.c.
Referenced by MD4Transform().
| #define G | ( | x, | |
| y, | |||
| z | |||
| ) | (((x) & (y)) | ((x) & (z)) | ((y) & (z))) |
| #define GG | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s | |||
| ) |
Definition at line 82 of file md4c.c.
Referenced by MD4Transform().
| #define HH | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s | |||
| ) |
Definition at line 86 of file md4c.c.
Referenced by MD4Transform().
| #define ROTATE_LEFT | ( | x, | |
| n | |||
| ) | (((x) << (n)) | ((x) >> (32-(n)))) |
| #define S11 3 |
Definition at line 41 of file md4c.c.
Referenced by MD4Transform().
| #define S12 7 |
Definition at line 42 of file md4c.c.
Referenced by MD4Transform().
| #define S13 11 |
Definition at line 43 of file md4c.c.
Referenced by MD4Transform().
| #define S14 19 |
Definition at line 44 of file md4c.c.
Referenced by MD4Transform().
| #define S21 3 |
Definition at line 45 of file md4c.c.
Referenced by MD4Transform().
| #define S22 5 |
Definition at line 46 of file md4c.c.
Referenced by MD4Transform().
| #define S23 9 |
Definition at line 47 of file md4c.c.
Referenced by MD4Transform().
| #define S24 13 |
Definition at line 48 of file md4c.c.
Referenced by MD4Transform().
| #define S31 3 |
Definition at line 49 of file md4c.c.
Referenced by MD4Transform().
| #define S32 9 |
Definition at line 50 of file md4c.c.
Referenced by MD4Transform().
| #define S33 11 |
Definition at line 51 of file md4c.c.
Referenced by MD4Transform().
| #define S34 15 |
Definition at line 52 of file md4c.c.
Referenced by MD4Transform().
| __FBSDID | ( | "$BSDSUniX$" | ) |
|
static |
Definition at line 277 of file md4c.c.
Referenced by MD4Transform().

|
static |
Definition at line 259 of file md4c.c.
Referenced by MD4Final(), and MD4Pad().

| void MD4Final | ( | digest | , |
| MD4_CTX * | context | ||
| ) |
| void MD4Pad | ( | MD4_CTX * | context | ) |
Definition at line 145 of file md4c.c.
References Encode(), and MD4Update().
Referenced by MD4Final().


|
static |
| void MD4Update | ( | MD4_CTX * | context, |
| const unsigned char * | input, | ||
| unsigned int | inputLen | ||
| ) |
Definition at line 110 of file md4c.c.
References MD4Transform().
Referenced by MD4Pad().


|
static |