From 53e67fbf8e2f9abccfd089faa3f712bad66e6b95 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Sun, 12 Oct 2003 14:32:13 +0000 Subject: [PATCH] use bswap32() for big endian arch. Reported by: tinderbox via kris --- sys/crypto/ripemd160/rmd160.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/crypto/ripemd160/rmd160.c b/sys/crypto/ripemd160/rmd160.c index e6ae0406e40..dd38b1ae7f4 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];