Commit e33abcdbe4a811b99c90c81f44e4a0641e426e1c

Jeff Garzik 2010-11-24T18:45:56

sha256: note about bitcoin input data

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/sha256_generic.c b/sha256_generic.c
index aaf3bc5..167756c 100644
--- a/sha256_generic.c
+++ b/sha256_generic.c
@@ -46,6 +46,9 @@ static inline u32 Maj(u32 x, u32 y, u32 z)
 
 static inline void LOAD_OP(int I, u32 *W, const u8 *input)
 {
+	/* byteswap is commented out, because bitcoin input
+	 * is already big-endian
+	 */
 	W[I] = /* ntohl */ ( ((u32*)(input))[I] );
 }