55 #ifndef ti_drivers_aesctr_AESCTRLPF3__include 56 #define ti_drivers_aesctr_AESCTRLPF3__include 65 #include <ti/devices/DeviceFamily.h> 66 #include DeviceFamily_constructPath(driverlib/aes.h) 81 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 82 #define AES_AUTOCFG_CTRENDN_BIGENDIAN AES_AUTOCFG_CTRENDIAN_BIGENDIAN 85 #if DeviceFamily_PARENT == DeviceFamily_PARENT_CC23X0 86 #define AESCTRLPF3_DEFAULT_AUTOCFG \ 87 ((uint32_t)AES_AUTOCFG_AESSRC_BUF | (uint32_t)AES_AUTOCFG_TRGAES_WRBUF3S | \ 88 (uint32_t)AES_AUTOCFG_TRGAES_RDTXT3 | (uint32_t)AES_AUTOCFG_CTRSIZE_CTR128 | \ 89 (uint32_t)AES_AUTOCFG_CTRENDN_BIGENDIAN | (uint32_t)AES_AUTOCFG_BUSHALT_EN) 90 #elif DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX 91 #define AESCTRLPF3_DEFAULT_AUTOCFG \ 92 ((uint32_t)AES_AUTOCFG_ECBSRC_BUF | (uint32_t)AES_AUTOCFG_TRGECB_WRBUF3S | \ 93 (uint32_t)AES_AUTOCFG_TRGECB_RDTXT3 | (uint32_t)AES_AUTOCFG_CTRSIZE_CTR128 | \ 94 (uint32_t)AES_AUTOCFG_CTRENDN_BIGENDIAN | (uint32_t)AES_AUTOCFG_BUSHALT_EN) 96 #error "Unsupported DeviceFamily_Parent for AESCTRLPF3!" 110 #if DeviceFamily_PARENT == DeviceFamily_PARENT_CC23X0 111 #define AESCTRLPF3_LAST_BLOCK_AUTOCFG \ 112 ((uint32_t)AES_AUTOCFG_AESSRC_BUF | (uint32_t)AES_AUTOCFG_TRGAES_WRBUF3S | \ 113 (uint32_t)AES_AUTOCFG_CTRSIZE_CTR128 | (uint32_t)AES_AUTOCFG_CTRENDN_BIGENDIAN | \ 114 (uint32_t)AES_AUTOCFG_BUSHALT_EN) 115 #elif DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX 116 #define AESCTRLPF3_LAST_BLOCK_AUTOCFG \ 117 ((uint32_t)AES_AUTOCFG_ECBSRC_BUF | (uint32_t)AES_AUTOCFG_TRGECB_WRBUF3S | \ 118 (uint32_t)AES_AUTOCFG_CTRSIZE_CTR128 | (uint32_t)AES_AUTOCFG_CTRENDN_BIGENDIAN | \ 119 (uint32_t)AES_AUTOCFG_BUSHALT_EN) 121 #error "Unsupported DeviceFamily_Parent for AESCTRLPF3!" 141 volatile uint32_t counter[AES_BLOCK_SIZE_WORDS];
164 void AESCTRLPF3_processData(
const uint8_t *input, uint8_t *output,
size_t inputLength,
bool isOneStepOrFinalOperation);
178 const uint8_t *input,
189 __STATIC_INLINE
void AESCTRLPF3_readCounter(uint32_t counterOut[AES_BLOCK_SIZE_WORDS])
192 AESReadBUF32(&counterOut[0]);
200 __STATIC_INLINE
void AESCTRLPF3_writeCounter(uint32_t counterIn[AES_BLOCK_SIZE_WORDS])
202 AESWriteBUF32(&counterIn[0]);
221 __STATIC_INLINE
bool AESCTR_acquireLock(
AESCTR_Handle handle, uint32_t timeout)
235 __STATIC_INLINE
void AESCTR_releaseLock(
AESCTR_Handle handle)
249 __STATIC_INLINE
void AESCTR_enableThreadSafety(
AESCTR_Handle handle)
252 object->threadSafe =
true;
267 __STATIC_INLINE
void AESCTR_disableThreadSafety(
AESCTR_Handle handle)
270 object->threadSafe =
false;
size_t inputLength
Definition: AESCTRLPF3.h:144
AESCommonLPF3_HWAttrs AESCTRLPF3_HWAttrs
AESCTRLPF3 Hardware Attributes.
Definition: AESCTRLPF3.h:130
bool CryptoResourceLPF3_acquireLock(uint32_t timeout)
void(* AESCTR_CallbackFxn)(AESCTR_Handle handle, int_fast16_t returnValue, AESCTR_OperationUnion *operation, AESCTR_OperationType operationType)
The definition of a callback function used by the AESCTR driver when used in AESCTR_RETURN_BEHAVIOR_C...
Definition: AESCTR.h:666
AES Global configuration.
Definition: AESCommon.h:154
uint8_t * output
Definition: AESCTRLPF3.h:143
AESCTR_OperationType
Enum for the operation types supported by the driver.
Definition: AESCTR.h:623
AESCTRLPF3 Object.
Definition: AESCTRLPF3.h:137
AESCTR_OperationUnion * operation
Definition: AESCTRLPF3.h:146
AESCTR_OperationType operationType
Definition: AESCTRLPF3.h:148
AESCommonLPF3 Hardware Attributes.
Definition: AESCommonLPF3.h:80
void CryptoResourceLPF3_releaseLock(void)
AESCommon driver implementation for the Low Power F3 family.
Shared resources to arbitrate access to the AES engine.
void * object
Definition: AESCommon.h:157
size_t inputLengthRemaining
Definition: AESCTRLPF3.h:145
AESCTR_CallbackFxn callbackFxn
Definition: AESCTRLPF3.h:147
Union containing a reference to a one-step and segmented operation structure.
Definition: AESCTR.h:585
bool threadSafe
Definition: AESCTRLPF3.h:149
const uint8_t * input
Definition: AESCTRLPF3.h:142
AESCommonLPF3 Object.
Definition: AESCommonLPF3.h:102
AESCommonLPF3_Object common
Definition: AESCTRLPF3.h:140