sha256_cryptopp asm: byteswap input words

This commit is contained in:
Jeff Garzik 2010-12-27 00:32:48 -05:00 committed by Jeff Garzik
parent 970e74c07d
commit 21e56a25c4

View file

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