Make MD5 work on Alpha, and fix a bug.
Submitted by: Andy Polyakov
This commit is contained in:
parent
673eadec2c
commit
db2b98359b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue