cryptlib
3.4.1
|
#include <stdlib.h>
#include <string.h>
#include "crypt/osconfig.h"
#include "crypt/ripemd.h"
#include "crypt/md32com.h"
#include "crypt/rmdconst.h"
Go to the source code of this file.
Macros | |
#define | RIPEMD160_LONG_LOG2 2 /* default to 32 bits */ |
#define | DATA_ORDER_IS_LITTLE_ENDIAN |
#define | HASH_LONG RIPEMD160_LONG |
#define | HASH_LONG_LOG2 RIPEMD160_LONG_LOG2 |
#define | HASH_CTX RIPEMD160_CTX |
#define | HASH_CBLOCK RIPEMD160_CBLOCK |
#define | HASH_LBLOCK RIPEMD160_LBLOCK |
#define | HASH_UPDATE RIPEMD160_Update |
#define | HASH_TRANSFORM RIPEMD160_Transform |
#define | HASH_FINAL RIPEMD160_Final |
#define | HASH_BLOCK_HOST_ORDER ripemd160_block_host_order |
#define | HASH_MAKE_STRING(c, s) |
#define | HASH_BLOCK_DATA_ORDER ripemd160_block_data_order |
#define | F1(x, y, z) ((x) ^ (y) ^ (z)) |
#define | F2(x, y, z) ((((y) ^ (z)) & (x)) ^ (z)) |
#define | F3(x, y, z) (((~(y)) | (x)) ^ (z)) |
#define | F4(x, y, z) ((((x) ^ (y)) & (z)) ^ (y)) |
#define | F5(x, y, z) (((~(z)) | (y)) ^ (x)) |
#define | RIPEMD160_A 0x67452301L |
#define | RIPEMD160_B 0xEFCDAB89L |
#define | RIPEMD160_C 0x98BADCFEL |
#define | RIPEMD160_D 0x10325476L |
#define | RIPEMD160_E 0xC3D2E1F0L |
#define | RIP1(a, b, c, d, e, w, s) |
#define | RIP2(a, b, c, d, e, w, s, K) |
#define | RIP3(a, b, c, d, e, w, s, K) |
#define | RIP4(a, b, c, d, e, w, s, K) |
#define | RIP5(a, b, c, d, e, w, s, K) |
Functions | |
void | ripemd160_block_host_order (RIPEMD160_CTX *c, const void *p, int num) |
void | ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p, int num) |
#define HASH_BLOCK_DATA_ORDER ripemd160_block_data_order |
#define HASH_BLOCK_HOST_ORDER ripemd160_block_host_order |
#define HASH_CBLOCK RIPEMD160_CBLOCK |
#define HASH_CTX RIPEMD160_CTX |
#define HASH_FINAL RIPEMD160_Final |
#define HASH_LBLOCK RIPEMD160_LBLOCK |
#define HASH_LONG RIPEMD160_LONG |
#define HASH_LONG_LOG2 RIPEMD160_LONG_LOG2 |
#define HASH_MAKE_STRING | ( | c, | |
s | |||
) |
#define HASH_TRANSFORM RIPEMD160_Transform |
#define HASH_UPDATE RIPEMD160_Update |
#define RIP1 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
w, | |||
s | |||
) |
#define RIP2 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
w, | |||
s, | |||
K | |||
) |
#define RIP3 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
w, | |||
s, | |||
K | |||
) |
#define RIP4 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
w, | |||
s, | |||
K | |||
) |
#define RIP5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
w, | |||
s, | |||
K | |||
) |
void ripemd160_block_data_order | ( | RIPEMD160_CTX * | c, |
const void * | p, | ||
int | num | ||
) |
void ripemd160_block_host_order | ( | RIPEMD160_CTX * | c, |
const void * | p, | ||
int | num | ||
) |