mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
use bswap32() for big endian arch.
Reported by: tinderbox via kris
This commit is contained in:
parent
5108cd3652
commit
53e67fbf8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121039
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue