Issue #213: AES fails with Freescale (mm)CAU.

This commit is contained in:
Andrew Burks
2015-12-10 16:55:49 -08:00
parent 4f0c2177b2
commit bc54b18cad

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++)