Commit b7201e9deca1f9600b683c9ac0467c1056512bf1

Jeff Garzik 2010-11-24T18:24:12

sha256: Assume that input is already big endian.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/sha256_generic.c b/sha256_generic.c
index 579e014..aaf3bc5 100644
--- a/sha256_generic.c
+++ b/sha256_generic.c
@@ -46,7 +46,7 @@ static inline u32 Maj(u32 x, u32 y, u32 z)
 
 static inline void LOAD_OP(int I, u32 *W, const u8 *input)
 {
-	W[I] = ntohl( ((u32*)(input))[I] );
+	W[I] = /* ntohl */ ( ((u32*)(input))[I] );
 }
 
 static inline void BLEND_OP(int I, u32 *W)