forked from wolfSSL/wolfssl
Issue #213: AES fails with Freescale (mm)CAU.
This commit is contained in:
@@ -2166,7 +2166,7 @@ int wc_AesSetIV(Aes* aes, const byte* iv)
|
|||||||
{
|
{
|
||||||
XMEMCPY(temp_block, in + offset, AES_BLOCK_SIZE);
|
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 */
|
/* XOR block with IV for CBC */
|
||||||
for (i = 0; i < AES_BLOCK_SIZE; i++)
|
for (i = 0; i < AES_BLOCK_SIZE; i++)
|
||||||
|
Reference in New Issue
Block a user