Fix typo from intermediate change for unaligned CBC fixes. Thanks Nick.

This commit is contained in:
David Garske
2017-05-19 14:10:50 -07:00
parent a616513860
commit 184e9c4090

View File

@ -2375,7 +2375,7 @@ int wc_AesSetIV(Aes* aes, const byte* iv)
CRYP_IVStructInit(&AES_CRYP_IVInitStructure); CRYP_IVStructInit(&AES_CRYP_IVInitStructure);
/* if input and output same will overwrite input iv */ /* if input and output same will overwrite input iv */
XMEMCPY(aes->tmp, in + len - AES_BLOCK_SIZE, AES_BLOCK_SIZE); XMEMCPY(aes->tmp, in + sz - AES_BLOCK_SIZE, AES_BLOCK_SIZE);
/* reset registers to their default values */ /* reset registers to their default values */
CRYP_DeInit(); CRYP_DeInit();