Kannel: Open Source WAP and SMS gateway
svn-r5336
|
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 | |
static void | md5_digest (char *md5str, unsigned char *digest) |
static void | md5_init (md5_ctx *) |
static void | md5_update (md5_ctx *, const unsigned char *, unsigned int) |
static void | md5_final (unsigned char[16], md5_ctx *) |
static void | md5_transform (unsigned int[4], const unsigned char[64]) |
static void | md5_encode (unsigned char *, unsigned int *, unsigned int) |
static void | md5_decode (unsigned int *, const unsigned char *, unsigned int) |
static void | md5_transform (state, block) |
Octstr * | md5 (Octstr *data) |
Octstr * | md5digest (Octstr *data) |
Variables | |
static unsigned char | PADDING [64] |
#define FF | ( | a, | |
b, | |||
c, | |||
d, | |||
x, | |||
s, | |||
ac | |||
) |
Definition at line 159 of file md5.c.
Referenced by md5_transform().
#define GG | ( | a, | |
b, | |||
c, | |||
d, | |||
x, | |||
s, | |||
ac | |||
) |
Definition at line 164 of file md5.c.
Referenced by md5_transform().
#define HH | ( | a, | |
b, | |||
c, | |||
d, | |||
x, | |||
s, | |||
ac | |||
) |
Definition at line 169 of file md5.c.
Referenced by md5_transform().
#define II | ( | a, | |
b, | |||
c, | |||
d, | |||
x, | |||
s, | |||
ac | |||
) |
Definition at line 174 of file md5.c.
Referenced by md5_transform().
#define ROTATE_LEFT | ( | x, | |
n | |||
) | (((x) << (n)) | ((x) >> (32-(n)))) |
#define S11 7 |
Definition at line 117 of file md5.c.
Referenced by md5_transform().
#define S12 12 |
Definition at line 118 of file md5.c.
Referenced by md5_transform().
#define S13 17 |
Definition at line 119 of file md5.c.
Referenced by md5_transform().
#define S14 22 |
Definition at line 120 of file md5.c.
Referenced by md5_transform().
#define S21 5 |
Definition at line 121 of file md5.c.
Referenced by md5_transform().
#define S22 9 |
Definition at line 122 of file md5.c.
Referenced by md5_transform().
#define S23 14 |
Definition at line 123 of file md5.c.
Referenced by md5_transform().
#define S24 20 |
Definition at line 124 of file md5.c.
Referenced by md5_transform().
#define S31 4 |
Definition at line 125 of file md5.c.
Referenced by md5_transform().
#define S32 11 |
Definition at line 126 of file md5.c.
Referenced by md5_transform().
#define S33 16 |
Definition at line 127 of file md5.c.
Referenced by md5_transform().
#define S34 23 |
Definition at line 128 of file md5.c.
Referenced by md5_transform().
#define S41 6 |
Definition at line 129 of file md5.c.
Referenced by md5_transform().
#define S42 10 |
Definition at line 130 of file md5.c.
Referenced by md5_transform().
#define S43 15 |
Definition at line 131 of file md5.c.
Referenced by md5_transform().
#define S44 21 |
Definition at line 132 of file md5.c.
Referenced by md5_transform().
Definition at line 387 of file md5.c.
References md5_final(), md5_init(), md5_update(), octstr_create_from_data, octstr_get_cstr, and octstr_len().
Referenced by cfg_get_group_checksum(), main(), md5digest(), and radius_authenticate_pdu().
|
static |
Definition at line 374 of file md5.c.
Referenced by md5_transform().
|
static |
Definition at line 102 of file md5.c.
Referenced by md5digest().
|
static |
|
static |
Definition at line 233 of file md5.c.
References md5_encode(), md5_update(), and PADDING.
Referenced by md5().
|
static |
|
static |
Referenced by md5_update().
|
static |
|
static |
Definition at line 195 of file md5.c.
References md5_transform().
Referenced by md5(), and md5_final().
Definition at line 406 of file md5.c.
References md5(), md5_digest(), octstr_create, octstr_destroy(), and octstr_get_cstr.
Referenced by main(), and our_hash_func().
|
static |
Definition at line 138 of file md5.c.
Referenced by md5_final().