From 21e56a25c4be7bccd00b7f365afa726a4236914c Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 27 Dec 2010 00:32:48 -0500 Subject: [PATCH] sha256_cryptopp asm: byteswap input words --- sha256_cryptopp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha256_cryptopp.c b/sha256_cryptopp.c index 3c200434..c42eaf51 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); }