Browse Source

sha256: Assume that input is already big endian.

nfactor-troky
Jeff Garzik 14 years ago committed by Jeff Garzik
parent
commit
b7201e9dec
  1. 2
      sha256_generic.c

2
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) 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) static inline void BLEND_OP(int I, u32 *W)

Loading…
Cancel
Save