aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sha256_generic.c3
1 files changed, 3 insertions, 0 deletions
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] );
}