diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-12-27 00:32:48 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-12-27 00:32:48 -0500 |
commit | 21e56a25c4be7bccd00b7f365afa726a4236914c (patch) | |
tree | fc69d73e39ba75c01e38b80feae11292be351ae4 /sha256_cryptopp.c | |
parent | 970e74c07d194d2eeba55874ed9ba9b7492b64cf (diff) |
sha256_cryptopp asm: byteswap input words
Diffstat (limited to 'sha256_cryptopp.c')
-rw-r--r-- | sha256_cryptopp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |