#define HASH_TRANSFORM MD5_Transform
#define HASH_FINAL MD5_Final
#define HASH_MAKE_STRING(c,s) do { \
- unsigned long l; \
- l=(c)->A; HOST_l2c(l,(s)); \
- l=(c)->B; HOST_l2c(l,(s)); \
- l=(c)->C; HOST_l2c(l,(s)); \
- l=(c)->D; HOST_l2c(l,(s)); \
+ 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_BLOCK_HOST_ORDER md5_block_host_order
#if !defined(L_ENDIAN) || defined(md5_block_data_order)
#define HASH_FINAL RIPEMD160_Final
#define HASH_BLOCK_HOST_ORDER ripemd160_block_host_order
#define HASH_MAKE_STRING(c,s) do { \
- unsigned long l; \
- l=(c)->A; HOST_l2c(l,(s)); \
- l=(c)->B; HOST_l2c(l,(s)); \
- l=(c)->C; HOST_l2c(l,(s)); \
- l=(c)->D; HOST_l2c(l,(s)); \
- l=(c)->E; HOST_l2c(l,(s)); \
+ 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)); \
+ ll=(c)->E; HOST_l2c(ll,(s)); \
} while (0)
#if !defined(L_ENDIAN) || defined(ripemd160_block_data_order)
#define HASH_BLOCK_DATA_ORDER ripemd160_block_data_order
*/
#include <stdio.h>
+#include <memory.h>
#include <openssl/ripemd.h>
unsigned char *RIPEMD160(unsigned char *d, unsigned long n,
#define HASH_CBLOCK SHA_CBLOCK
#define HASH_LBLOCK SHA_LBLOCK
#define HASH_MAKE_STRING(c,s) do { \
- unsigned long l; \
- l=(c)->h0; HOST_l2c(l,(s)); \
- l=(c)->h1; HOST_l2c(l,(s)); \
- l=(c)->h2; HOST_l2c(l,(s)); \
- l=(c)->h3; HOST_l2c(l,(s)); \
- l=(c)->h4; HOST_l2c(l,(s)); \
+ unsigned long ll; \
+ ll=(c)->h0; HOST_l2c(ll,(s)); \
+ ll=(c)->h1; HOST_l2c(ll,(s)); \
+ ll=(c)->h2; HOST_l2c(ll,(s)); \
+ ll=(c)->h3; HOST_l2c(ll,(s)); \
+ ll=(c)->h4; HOST_l2c(ll,(s)); \
} while (0)
#if defined(SHA_0)