use bswap32() for big endian arch.

Reported by:	tinderbox via kris
This commit is contained in:
Hajimu UMEMOTO 2003-10-12 14:32:13 +00:00
parent 5108cd3652
commit 53e67fbf8e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121039

View File

@ -171,7 +171,7 @@ RMD160Transform(u_int32_t state[5], const u_char block[64])
int i;
for (i = 0; i < 16; i++)
x[i] = swap32(*(u_int32_t*)(block+i*4));
x[i] = bswap32(*(const u_int32_t*)(block+i*4));
#endif
a = state[0];