Merge pull request #214 from aburks/IS-213-AESFailsWithFreescaleCAU

Issue #213: AES fails with Freescale (mm)CAU
This commit is contained in:
dgarske
2015-12-10 17:08:52 -08:00

View File

@@ -2166,7 +2166,7 @@ int wc_AesSetIV(Aes* aes, const byte* iv)
{
XMEMCPY(temp_block, in + offset, AES_BLOCK_SIZE);
wc_AesEncrypt(aes, in + offset, out + offset);
wc_AesDecrypt(aes, in + offset, out + offset);
/* XOR block with IV for CBC */
for (i = 0; i < AES_BLOCK_SIZE; i++)