498 #ifndef ti_drivers_AESCMAC__include 499 #define ti_drivers_AESCMAC__include 524 #define AESCMAC_STATUS_RESERVED AES_STATUS_RESERVED 532 #define AESCMAC_STATUS_SUCCESS AES_STATUS_SUCCESS 540 #define AESCMAC_STATUS_ERROR AES_STATUS_ERROR 550 #define AESCMAC_STATUS_RESOURCE_UNAVAILABLE AES_STATUS_RESOURCE_UNAVAILABLE 558 #define AESCMAC_STATUS_MAC_INVALID AES_STATUS_MAC_INVALID 563 #define AESCMAC_STATUS_CANCELED AES_STATUS_CANCELED 568 #define AESCMAC_STATUS_KEYSTORE_INVALID_ID AES_STATUS_KEYSTORE_INVALID_ID 574 #define AESCMAC_STATUS_KEYSTORE_GENERIC_ERROR AES_STATUS_KEYSTORE_GENERIC_ERROR 582 #define AESCMAC_STATUS_UNALIGNED_IO_NOT_SUPPORTED AES_STATUS_UNALIGNED_IO_NOT_SUPPORTED 689 #define AESCMAC_OP_CODE_MASK 0x0F 705 #define AESCMAC_OP_FLAG_SIGN 0x10 710 #define AESCMAC_OP_FLAGS_MASK (AESCMAC_OP_FLAG_SIGN | AESCMAC_OP_FLAG_VERIFY) 740 int_fast16_t returnValue,
742 AESCMAC_OperationType operationType);
AESCMAC_OperationalMode operationalMode
Definition: AESCMAC.h:755
size_t inputLength
Definition: AESCMAC.h:674
size_t macLength
Definition: AESCMAC.h:679
ADC_Params params
Definition: Driver_Init.h:11
void AESCMAC_Operation_init(AESCMAC_Operation *operation)
Initializes an AESCMAC_Operation struct to its defaults.
int_fast16_t AESCMAC_oneStepSign(AESCMAC_Handle handle, AESCMAC_Operation *operation, CryptoKey *key)
Performs a AESCMAC signature in one call.
Definition: AESCMAC.h:655
The CryptoKey type is an opaque representation of a cryptographic key.
int_fast16_t AESCMAC_setupSign(AESCMAC_Handle handle, const CryptoKey *key)
Prepares a segmented AESCMAC sign operation.
Definition: AESCMAC.h:719
Definition: AESCMAC.h:722
int_fast16_t AESCMAC_setupVerify(AESCMAC_Handle handle, const CryptoKey *key)
Prepares a segmented AESCMAC verify operation.
AES Global configuration.
Definition: AESCommon.h:154
CryptoKey datastructure.
Definition: CryptoKey.h:196
Definition: AESCMAC.h:697
Definition: AESCommon.h:186
AESCMAC_OperationType
Enum for the operation types supported by the driver.
Definition: AESCMAC.h:715
void AESCMAC_close(AESCMAC_Handle handle)
Closes a AESCMAC peripheral specified by the CMAC handle.
Definition: AESCMAC.h:720
Definition: AESCommon.h:196
AESCMAC_Handle AESCMAC_open(uint_least8_t index, const AESCMAC_Params *params)
Opens a given AESCMAC peripheral.
void AESCMAC_Params_init(AESCMAC_Params *params)
Initializes the AESCMAC_Params struct to its defaults.
#define AESCMAC_OP_FLAG_SIGN
Flag indicating a sign operation. If this bit is not set, then it is a verify operation.
Definition: AESCMAC.h:705
int_fast16_t AESCMAC_cancelOperation(AESCMAC_Handle handle)
Cancels an ongoing AESCMAC operation.
void AESCMAC_init(void)
Initializes the CMAC module.
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:739
const AESCMAC_Params AESCMAC_defaultParams
Default AESCMAC_Params structure.
Definition: AESCommon.h:192
AESCMAC_OperationalMode
Defines the operation modes for the AESCMAC driver.
Definition: AESCMAC.h:652
Definition: AESCMAC.h:721
AESCommon_Config AESCMAC_Config
CMAC Global configuration.
Definition: AESCMAC.h:595
AESCMAC_Config * AESCMAC_Handle
A handle that is returned from an AESCMAC_open() call.
Definition: AESCMAC.h:600
Definition: AESCMAC.h:717
AESCMAC Parameters.
Definition: AESCMAC.h:752
Definition: AESCMAC.h:718
Definition: AESCMAC.h:654
int_fast16_t AESCMAC_finalize(AESCMAC_Handle handle, AESCMAC_Operation *operation)
Finalizes the current segmented operation.
int_fast16_t AESCMAC_oneStepVerify(AESCMAC_Handle handle, AESCMAC_Operation *operation, CryptoKey *key)
Performs a AESCMAC verification in one call.
Definition: AESCMAC.h:624
Definition: AESCMAC.h:696
AESCMAC_CallbackFxn callbackFxn
Definition: AESCMAC.h:756
uint8_t * mac
Definition: AESCMAC.h:668
AES common module header for all devices.
AESCMAC_ReturnBehavior returnBehavior
Definition: AESCMAC.h:754
AESCMAC_Handle AESCMAC_construct(AESCMAC_Config *config, const AESCMAC_Params *params)
Constructs a new AESCMAC object.
uint8_t * input
Definition: AESCMAC.h:663
Struct containing the parameters required for signing or verifying a message.
Definition: AESCMAC.h:661
Definition: AESCMAC.h:698
int_fast16_t AESCMAC_addData(AESCMAC_Handle handle, AESCMAC_Operation *operation)
Adds data to the current segmented operation.
uint32_t timeout
Definition: AESCMAC.h:757
Definition: AESCMAC.h:631
AESCMAC_ReturnBehavior
The return behavior of AESCMAC functions.
Definition: AESCMAC.h:622
void * custom
Definition: AESCMAC.h:760
AESCMAC_OperationCode
Enum for the operation codes supported by the driver.
Definition: AESCMAC.h:694
Definition: AESCMAC.h:636