sha256: note about bitcoin input data

This commit is contained in:
Jeff Garzik 2010-11-24 18:45:56 -05:00 committed by Jeff Garzik
parent 19b51e3600
commit e33abcdbe4

View file

@ -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] );
}