diff options
author | ume <ume@FreeBSD.org> | 2003-10-12 14:32:13 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-12 14:32:13 +0000 |
commit | d56603d9be350b5c23801af62fb7fa4a126cfbbb (patch) | |
tree | b43aa8b933a396fa73905327c24dc74ad85d6434 /sys | |
parent | edaf9214c4b4dc701135ce636be7e682e3922740 (diff) | |
download | FreeBSD-src-d56603d9be350b5c23801af62fb7fa4a126cfbbb.zip FreeBSD-src-d56603d9be350b5c23801af62fb7fa4a126cfbbb.tar.gz |
use bswap32() for big endian arch.
Reported by: tinderbox via kris
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/ripemd160/rmd160.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/ripemd160/rmd160.c b/sys/crypto/ripemd160/rmd160.c index e6ae040..dd38b1a 100644 --- a/sys/crypto/ripemd160/rmd160.c +++ b/sys/crypto/ripemd160/rmd160.c @@ -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]; |