sha256_cryptopp asm: byteswap input words
This commit is contained in:
parent
970e74c07d
commit
21e56a25c4
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ static void SHA256_Transform32(word32 *state, const word32 *data)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 16; 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);
|
X86_SHA256_HashBlocks(state, W, 16 * 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue