diff --git a/sha256_cryptopp.c b/sha256_cryptopp.c index 3c20043..c42eaf5 100644 --- a/sha256_cryptopp.c +++ b/sha256_cryptopp.c @@ -570,7 +570,7 @@ static void SHA256_Transform32(word32 *state, const word32 *data) int i; for (i = 0; i < 16; i++) - W[i] = ((word32 *)(data))[i]; + W[i] = swab32(((word32 *)(data))[i]); X86_SHA256_HashBlocks(state, W, 16 * 4); }