diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-24 18:45:56 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-24 18:45:56 -0500 |
commit | e33abcdbe4a811b99c90c81f44e4a0641e426e1c (patch) | |
tree | ba543d1b2f18db4efb05d205da926dadd3db89f2 | |
parent | 19b51e360050443be2e950b7cfe8758bd969f53d (diff) |
sha256: note about bitcoin input data
-rw-r--r-- | sha256_generic.c | 3 |
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] ); } |