#include <stdlib.h>
#include <string.h>
#include <openssl/e_os2.h>
#include <openssl/md5.h>
#include "md32_common.h"
Ir al código fuente de este archivo.
'defines' |
#define | MD5_LONG_LOG2 2 |
#define | DATA_ORDER_IS_LITTLE_ENDIAN |
#define | HASH_LONG MD5_LONG |
#define | HASH_CTX MD5_CTX |
#define | HASH_CBLOCK MD5_CBLOCK |
#define | HASH_UPDATE MD5_Update |
#define | HASH_TRANSFORM MD5_Transform |
#define | HASH_FINAL MD5_Final |
#define | HASH_MAKE_STRING(c, s) |
#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) |
Funciones |
void | md5_block_data_order (MD5_CTX *c, const void *p, size_t num) |
Documentación de los 'defines'
#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_BLOCK_DATA_ORDER md5_block_data_order |
#define HASH_CBLOCK MD5_CBLOCK |
#define HASH_FINAL MD5_Final |
#define HASH_LONG MD5_LONG |
#define HASH_MAKE_STRING |
( |
|
c, |
|
|
|
s |
|
) |
| |
Valor:do { \
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)); \
} while (0)
#define HASH_TRANSFORM MD5_Transform |
#define HASH_UPDATE MD5_Update |
#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 |
|
) |
| |
Documentación de las funciones
void md5_block_data_order |
( |
MD5_CTX * |
c, |
|
|
const void * |
p, |
|
|
size_t |
num |
|
) |
| |