64 #ifndef ti_drivers_aescmac_AESCMACLPF3__include 65 #define ti_drivers_aescmac_AESCMACLPF3__include 74 #include <ti/devices/DeviceFamily.h> 76 #if (DeviceFamily_PARENT != DeviceFamily_PARENT_CC35XX) 77 #include DeviceFamily_constructPath(inc/hw_types.h) 78 #include DeviceFamily_constructPath(driverlib/aes.h) 91 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC23X0) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 92 #define AESCMACLPF3_DEFAULT_AUTOCFG \ 93 ((uint32_t)AES_AUTOCFG_AESSRC_TXTXBUF | (uint32_t)AES_AUTOCFG_TRGAES_WRBUF3 | (uint32_t)AES_AUTOCFG_BUSHALT_EN) 94 #elif (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX) 97 #error "Unsupported DeviceFamily_Parent for AESCMACLPF3!" 105 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC23X0) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 106 #define AESCMACLPF3_DMA_CONFIG ((uint32_t)AES_DMA_ADRCHA_BUF0 | (uint32_t)AES_DMA_TRGCHA_AESSTART) 107 #elif (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX) 110 #error "Unsupported DeviceFamily_Parent for AESCMACLPF3!" 113 #define AESCBCMACLPF3_DMA_CONFIG AESCMACLPF3_DMA_CONFIG 138 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 167 void AESCMACLPF3_processBlocks(
const uint8_t *input,
size_t transactionLength);
194 __STATIC_INLINE
bool AESCMAC_acquireLock(
AESCMAC_Handle handle, uint32_t timeout)
222 __STATIC_INLINE
void AESCMAC_enableThreadSafety(
AESCMAC_Handle handle)
225 object->threadSafe =
true;
240 __STATIC_INLINE
void AESCMAC_disableThreadSafety(
AESCMAC_Handle handle)
243 object->threadSafe =
false;
uint32_t tempAssetID
Definition: AESCMACLPF3.h:141
bool CryptoResourceLPF3_acquireLock(uint32_t timeout)
bool driverCreatedKeyAsset
Definition: AESCMACLPF3.h:152
AES Global configuration.
Definition: AESCommon.h:154
AESCMACLPF3 Object.
Definition: AESCMACLPF3.h:128
AESCMAC_OperationType
Enum for the operation types supported by the driver.
Definition: AESCMAC.h:772
#define AES_TAG_LENGTH_BYTES
Definition: AESCommonLPF3.h:93
AESCommonLPF3_Object common
Definition: AESCMACLPF3.h:131
bool segmentedOperationInProgress
Definition: AESCMACLPF3.h:151
void(* AESCMAC_CallbackFxn)(AESCMAC_Handle handle, int_fast16_t returnValue, AESCMAC_Operation *operation, AESCMAC_OperationType operationType)
The definition of a callback function used by the AESCMAC driver when used in AESCMAC_RETURN_BEHAVIOR...
Definition: AESCMAC.h:796
AESCMAC_OperationType operationType
Definition: AESCMACLPF3.h:136
AESCMAC_Operation * operation
Definition: AESCMACLPF3.h:135
AESCMAC_OperationalMode
Defines the operation modes for the AESCMAC driver.
Definition: AESCMAC.h:708
size_t inputLength
Definition: AESCMACLPF3.h:140
uint32_t keyAssetID
Definition: AESCMACLPF3.h:142
AESCMAC_CallbackFxn callbackFxn
Definition: AESCMACLPF3.h:134
AESCommonLPF3 Hardware Attributes.
Definition: AESCommonLPF3.h:103
void CryptoResourceLPF3_releaseLock(void)
AESCommon driver implementation for the Low Power F3 family.
bool threadSafe
Definition: AESCMACLPF3.h:154
#define AES_BLOCK_SIZE_WORDS
Definition: AESCommonLPF3.h:86
Shared resources to arbitrate access to the AES engine.
int_fast16_t hsmStatus
The staus of the HSM Boot up process if HSMLPF3_STATUS_SUCCESS, the HSM booted properly. if HSMLPF3_STATUS_ERROR, the HSM did not boot properly.
Definition: AESCMACLPF3.h:148
AESCommonLPF3_HWAttrs AESCMACLPF3_HWAttrs
AESCMACLPF3 Hardware Attributes.
Definition: AESCMACLPF3.h:121
AESCMAC (CMAC and CBC-MAC) driver header.
void * object
Definition: AESCommon.h:157
Struct containing the parameters required for signing or verifying a message.
Definition: AESCMAC.h:717
uint8_t * input
Definition: AESCMACLPF3.h:139
AESCMAC_OperationalMode operationalMode
Definition: AESCMACLPF3.h:137
AESCommonLPF3 Object.
Definition: AESCommonLPF3.h:125