From db2b98359b41f92a4d32076ee9b163213cb71e7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Mon, 17 May 1999 11:21:52 +0000 Subject: [PATCH] Make MD5 work on Alpha, and fix a bug. Submitted by: Andy Polyakov --- crypto/md32_common.h | 2 +- crypto/md5/md5_locl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 3c086a8aae..8c0a085369 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -315,7 +315,7 @@ # endif #endif -#if !defined(HASH_BLOCK_DATA_ORDER_ALIGNED) && HASH_BLOCK_DATA_ORDER_ALIGNED!=1 +#if !defined(HASH_BLOCK_DATA_ORDER_ALIGNED) || HASH_BLOCK_DATA_ORDER_ALIGNED==1 #ifndef HASH_BLOCK_DATA_ORDER #error "HASH_BLOCK_DATA_ORDER must be defined!" #endif diff --git a/crypto/md5/md5_locl.h b/crypto/md5/md5_locl.h index 510e5735e1..bafd305ad0 100644 --- a/crypto/md5/md5_locl.h +++ b/crypto/md5/md5_locl.h @@ -112,7 +112,7 @@ void md5_block_data_order (MD5_CTX *c, const void *p,int num); #define HASH_TRANSFORM MD5_Transform #define HASH_FINAL MD5_Final #define HASH_BLOCK_HOST_ORDER md5_block_host_order -#if defined(B_ENDIAN) || defined(md5_block_data_order) +#if !defined(L_ENDIAN) || defined(md5_block_data_order) #define HASH_BLOCK_DATA_ORDER md5_block_data_order /* * Little-endians (Intel and Alpha) feel better without this. -- 2.25.1