#include <stdlib.h>
#include <string.h>
#include "crypt/osconfig.h"
#include "crypt/md5.h"
#include "crypt/md32com.h"
Go to the source code of this file.
|
#define | MD5_LONG_LOG2 2 /* default to 32 bits */ |
|
#define | DATA_ORDER_IS_LITTLE_ENDIAN |
|
#define | HASH_LONG MD5_LONG |
|
#define | HASH_LONG_LOG2 MD5_LONG_LOG2 |
|
#define | HASH_CTX MD5_CTX |
|
#define | HASH_CBLOCK MD5_CBLOCK |
|
#define | HASH_LBLOCK MD5_LBLOCK |
|
#define | HASH_UPDATE MD5_Update |
|
#define | HASH_TRANSFORM MD5_Transform |
|
#define | HASH_FINAL MD5_Final |
|
#define | HASH_MAKE_STRING(c, s) |
|
#define | HASH_BLOCK_HOST_ORDER md5_block_host_order |
|
#define | HASH_BLOCK_DATA_ORDER md5_block_data_order |
|
#define | F(b, c, d) ((((c) ^ (d)) & (b)) ^ (d)) |
|
#define | G(b, c, d) ((((b) ^ (c)) & (d)) ^ (c)) |
|
#define | H(b, c, d) ((b) ^ (c) ^ (d)) |
|
#define | I(b, c, d) (((~(d)) | (b)) ^ (c)) |
|
#define | R0(a, b, c, d, k, s, t) |
|
#define | R1(a, b, c, d, k, s, t) |
|
#define | R2(a, b, c, d, k, s, t) |
|
#define | R3(a, b, c, d, k, s, t) |
|
#define DATA_ORDER_IS_LITTLE_ENDIAN |
#define F |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| ((((c) ^ (d)) & (b)) ^ (d)) |
#define G |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| ((((b) ^ (c)) & (d)) ^ (c)) |
#define H |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| ((b) ^ (c) ^ (d)) |
#define HASH_MAKE_STRING |
( |
|
c, |
|
|
|
s |
|
) |
| |
Value:{ \
unsigned long ll; \
ll=(c)->A; HOST_l2c(ll,(
s)); \
ll=(c)->B; HOST_l2c(ll,(
s)); \
ll=(c)->C; HOST_l2c(ll,(
s)); \
ll=(c)->D; HOST_l2c(ll,(
s)); \
}
Definition at line 120 of file md5locl.h.
#define I |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| (((~(d)) | (b)) ^ (c)) |
#define MD5_LONG_LOG2 2 /* default to 32 bits */ |
#define R0 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s, |
|
|
|
t |
|
) |
| |
Value:{ \
a+=((k)+(t)+
F((b),(c),(d))); \
a+=b; };\
Definition at line 163 of file md5locl.h.
#define R1 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s, |
|
|
|
t |
|
) |
| |
Value:{ \
a+=((k)+(t)+
G((b),(c),(d))); \
a+=b; };
Definition at line 168 of file md5locl.h.
#define R2 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s, |
|
|
|
t |
|
) |
| |
Value:{ \
a+=((k)+(t)+
H((b),(c),(d))); \
a+=b; };
Definition at line 173 of file md5locl.h.
#define R3 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s, |
|
|
|
t |
|
) |
| |
Value:{ \
a+=((k)+(t)+
I((b),(c),(d))); \
a+=b; };
Definition at line 178 of file md5locl.h.
void md5_block_data_order |
( |
MD5_CTX * |
c, |
|
|
const void * |
p, |
|
|
int |
num |
|
) |
| |
void md5_block_host_order |
( |
MD5_CTX * |
c, |
|
|
const void * |
p, |
|
|
int |
num |
|
) |
| |