Browse Source

sha256_cryptopp asm: byteswap input words

nfactor-troky
Jeff Garzik 14 years ago committed by Jeff Garzik
parent
commit
21e56a25c4
  1. 2
      sha256_cryptopp.c

2
sha256_cryptopp.c

@ -570,7 +570,7 @@ static void SHA256_Transform32(word32 *state, const word32 *data) @@ -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);
}

Loading…
Cancel
Save