#include <stdlib.h>
#include <string.h>
#include <openssl/opensslconf.h>
#include <openssl/md4.h>
#include "md32_common.h"
Ir al código fuente de este archivo.
'defines' |
#define | MD4_LONG_LOG2 2 |
#define | DATA_ORDER_IS_LITTLE_ENDIAN |
#define | HASH_LONG MD4_LONG |
#define | HASH_CTX MD4_CTX |
#define | HASH_CBLOCK MD4_CBLOCK |
#define | HASH_UPDATE MD4_Update |
#define | HASH_TRANSFORM MD4_Transform |
#define | HASH_FINAL MD4_Final |
#define | HASH_MAKE_STRING(c, s) |
#define | HASH_BLOCK_DATA_ORDER md4_block_data_order |
#define | F(b, c, d) ((((c) ^ (d)) & (b)) ^ (d)) |
#define | G(b, c, d) (((b) & (c)) | ((b) & (d)) | ((c) & (d))) |
#define | H(b, c, d) ((b) ^ (c) ^ (d)) |
#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) |
Funciones |
void | md4_block_data_order (MD4_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)) | ((b) & (d)) | ((c) & (d))) |
#define H |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| ((b) ^ (c) ^ (d)) |
#define HASH_BLOCK_DATA_ORDER md4_block_data_order |
#define HASH_CBLOCK MD4_CBLOCK |
#define HASH_FINAL MD4_Final |
#define HASH_LONG MD4_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 MD4_Transform |
#define HASH_UPDATE MD4_Update |
#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 |
|
) |
| |
Documentación de las funciones
void md4_block_data_order |
( |
MD4_CTX * |
c, |
|
|
const void * |
p, |
|
|
size_t |
num |
|
) |
| |