mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
fixed arm-none-eabi-gcc type check on AESIVSet, AESKey1Set
This commit is contained in:
@@ -89,8 +89,8 @@ static int AesAlign16(Aes* aes, byte* out, const byte* in, word32 sz, word32 di
|
|||||||
ROM_AESReset(AES_BASE);
|
ROM_AESReset(AES_BASE);
|
||||||
ROM_AESConfigSet(AES_BASE, (aes->keylen | dir |
|
ROM_AESConfigSet(AES_BASE, (aes->keylen | dir |
|
||||||
(mode==AES_CFG_MODE_CTR_NOCTR ? AES_CFG_MODE_CTR : mode)));
|
(mode==AES_CFG_MODE_CTR_NOCTR ? AES_CFG_MODE_CTR : mode)));
|
||||||
ROM_AESIVSet(AES_BASE, aes->reg);
|
ROM_AESIVSet(AES_BASE, (uint32_t *)aes->reg);
|
||||||
ROM_AESKey1Set(AES_BASE, aes->key, aes->keylen);
|
ROM_AESKey1Set(AES_BASE, (uint32_t *)aes->key, aes->keylen);
|
||||||
if((dir == AES_CFG_DIR_DECRYPT)&& (mode == AES_CFG_MODE_CBC))
|
if((dir == AES_CFG_DIR_DECRYPT)&& (mode == AES_CFG_MODE_CBC))
|
||||||
/* if input and output same will overwrite input iv */
|
/* if input and output same will overwrite input iv */
|
||||||
XMEMCPY(aes->tmp, in + sz - AES_BLOCK_SIZE, AES_BLOCK_SIZE);
|
XMEMCPY(aes->tmp, in + sz - AES_BLOCK_SIZE, AES_BLOCK_SIZE);
|
||||||
|
Reference in New Issue
Block a user