forked from wolfSSL/wolfssl
Fix TI driver API to ROM_xxx
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
#include "driverlib/timer.h"
|
#include "driverlib/timer.h"
|
||||||
|
|
||||||
void InitTimer(void) {
|
void InitTimer(void) {
|
||||||
uint32_t ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
|
uint32_t ui32SysClock = ROM_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
|
||||||
SYSCTL_OSC_MAIN |
|
SYSCTL_OSC_MAIN |
|
||||||
SYSCTL_USE_PLL |
|
SYSCTL_USE_PLL |
|
||||||
SYSCTL_CFG_VCO_480), 120000000);
|
SYSCTL_CFG_VCO_480), 120000000);
|
||||||
|
@@ -89,7 +89,7 @@ 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)));
|
||||||
AESIVSet(AES_BASE, aes->reg);
|
ROM_AESIVSet(AES_BASE, aes->reg);
|
||||||
ROM_AESKey1Set(AES_BASE, aes->key, aes->keylen);
|
ROM_AESKey1Set(AES_BASE, 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 */
|
||||||
|
@@ -48,7 +48,7 @@ bool wolfSSL_TI_CCMInit(void)
|
|||||||
if(ccm_init)return true ;
|
if(ccm_init)return true ;
|
||||||
ccm_init = true ;
|
ccm_init = true ;
|
||||||
|
|
||||||
SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
|
ROM_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
|
||||||
SYSCTL_OSC_MAIN |
|
SYSCTL_OSC_MAIN |
|
||||||
SYSCTL_USE_PLL |
|
SYSCTL_USE_PLL |
|
||||||
SYSCTL_CFG_VCO_480), 120000000);
|
SYSCTL_CFG_VCO_480), 120000000);
|
||||||
|
@@ -74,7 +74,7 @@ static int DesCbcAlign16(Des* des, byte* out, const byte* in, word32 sz, word32
|
|||||||
wolfSSL_TI_lockCCM() ;
|
wolfSSL_TI_lockCCM() ;
|
||||||
ROM_DESReset(DES_BASE);
|
ROM_DESReset(DES_BASE);
|
||||||
ROM_DESConfigSet(DES_BASE, (dir | DES_CFG_MODE_CBC | tri));
|
ROM_DESConfigSet(DES_BASE, (dir | DES_CFG_MODE_CBC | tri));
|
||||||
DESIVSet(DES_BASE, des->reg);
|
ROM_DESIVSet(DES_BASE, des->reg);
|
||||||
ROM_DESKeySet(DES_BASE, des->key);
|
ROM_DESKeySet(DES_BASE, des->key);
|
||||||
if(dir == DES_CFG_DIR_DECRYPT)
|
if(dir == DES_CFG_DIR_DECRYPT)
|
||||||
/* if input and output same will overwrite input iv */
|
/* if input and output same will overwrite input iv */
|
||||||
|
Reference in New Issue
Block a user