570 #ifndef ti_drivers_AESCBC__include 571 #define ti_drivers_AESCBC__include 596 #define AESCBC_STATUS_RESERVED AES_STATUS_RESERVED 604 #define AESCBC_STATUS_SUCCESS AES_STATUS_SUCCESS 612 #define AESCBC_STATUS_ERROR AES_STATUS_ERROR 622 #define AESCBC_STATUS_RESOURCE_UNAVAILABLE AES_STATUS_RESOURCE_UNAVAILABLE 627 #define AESCBC_STATUS_CANCELED AES_STATUS_CANCELED 636 #define AESCBC_STATUS_FEATURE_NOT_SUPPORTED AES_STATUS_FEATURE_NOT_SUPPORTED 641 #define AESCBC_STATUS_KEYSTORE_INVALID_ID AES_STATUS_KEYSTORE_INVALID_ID 647 #define AESCBC_STATUS_KEYSTORE_GENERIC_ERROR AES_STATUS_KEYSTORE_GENERIC_ERROR 655 #define AESCBC_STATUS_UNALIGNED_IO_NOT_SUPPORTED AES_STATUS_UNALIGNED_IO_NOT_SUPPORTED 844 int_fast16_t returnValue,
1065 int_fast16_t
AESCBC_setIV(AESCBC_Handle handle,
const uint8_t *iv,
size_t ivLength);
1093 int_fast16_t
AESCBC_generateIV(AESCBC_Handle handle, uint8_t *iv,
size_t ivSize,
size_t *ivLength);
ADC_Params params
Definition: Driver_Init.h:11
const AESCBC_Params AESCBC_defaultParams
Default AESCBC_Params structure.
int_fast16_t AESCBC_setupEncrypt(AESCBC_Handle handle, const CryptoKey *key)
Function to prepare a segmented AESCBC encryption operation.
uint8_t * input
Definition: AESCBC.h:733
The CryptoKey type is an opaque representation of a cryptographic key.
int_fast16_t AESCBC_oneStepEncrypt(AESCBC_Handle handle, AESCBC_OneStepOperation *operationStruct)
Function to perform an AESCBC encryption operation in one call.
int_fast16_t AESCBC_oneStepDecrypt(AESCBC_Handle handle, AESCBC_OneStepOperation *operationStruct)
Function to perform an AESCBC decryption operation in one call.
AESCBC_ReturnBehavior returnBehavior
Definition: AESCBC.h:858
union AESCBC_OperationUnion AESCBC_OperationUnion
Union containing a reference to a one step or segmented operation.
int_fast16_t AESCBC_cancelOperation(AESCBC_Handle handle)
Cancels an ongoing AESCBC operation.
AESCommon_Config AESCBC_Config
AESCBC Global configuration.
Definition: AESCBC.h:668
AES Global configuration.
Definition: AESCommon.h:154
uint8_t * output
Definition: AESCBC.h:777
CryptoKey datastructure.
Definition: CryptoKey.h:196
Definition: AESCommon.h:186
AESCBC_CallbackFxn callbackFxn
Definition: AESCBC.h:859
AESCBC_Mode
Enum for the direction of the CBC operation.
Definition: AESCBC.h:720
Definition: AESCommon.h:196
AESCBC_ReturnBehavior
The way in which CBC function calls return after performing an encryption or decryption operation...
Definition: AESCBC.h:696
uint8_t * input
Definition: AESCBC.h:772
Struct containing the parameters required for encrypting/decrypting a message in a segmented operatio...
Definition: AESCBC.h:770
void AESCBC_close(AESCBC_Handle handle)
Function to close a CBC peripheral specified by the CBC handle.
int_fast16_t AESCBC_generateIV(AESCBC_Handle handle, uint8_t *iv, size_t ivSize, size_t *ivLength)
Function to generate an initialization vector for an AES CBC segmented encryption operation...
int_fast16_t AESCBC_finalize(AESCBC_Handle handle, AESCBC_SegmentedOperation *operation)
Finalize the AES operation. If new data needs to be added, inputLength will be used to govern how man...
AESCBC_OneStepOperation AESCBC_Operation
Definition: AESCBC.h:800
AESCBC_Handle AESCBC_construct(AESCBC_Config *config, const AESCBC_Params *params)
Constructs a new AESCBC object.
Definition: AESCommon.h:192
uint8_t * output
Definition: AESCBC.h:738
Struct containing the parameters required for encrypting/decrypting a message in a single-step operat...
Definition: AESCBC.h:730
AESCBC_SegmentedOperation segmentedOperation
Definition: AESCBC.h:809
int_fast16_t AESCBC_addData(AESCBC_Handle handle, AESCBC_SegmentedOperation *operation)
Encrypts or decrypts a segment of data defined by the AESCBC_SegmentedOperation struct.
void AESCBC_OneStepOperation_init(AESCBC_OneStepOperation *operationStruct)
Function to initialize an AESCBC_OneStepOperation struct to its defaults.
CryptoKey * key
Definition: AESCBC.h:732
void AESCBC_init(void)
This function initializes the CBC module.
void AESCBC_Operation_init(AESCBC_Operation *operationStruct)
Function to initialize an AESCBC_Operation struct to its defaults.
AESCBC_Handle AESCBC_open(uint_least8_t index, const AESCBC_Params *params)
This function opens a given CBC peripheral.
bool ivInternallyGenerated
Definition: AESCBC.h:759
void * custom
Definition: AESCBC.h:863
AESCBC_OneStepOperation oneStepOperation
Definition: AESCBC.h:808
void AESCBC_SegmentedOperation_init(AESCBC_SegmentedOperation *operationStruct)
Function to initialize an AESCBC_SegmentedOperation struct to its defaults.
AESCBC_OperationType
Enum for the operation types supported by the driver.
Definition: AESCBC.h:815
size_t inputLength
Definition: AESCBC.h:750
Union containing a reference to a one step or segmented operation.
Definition: AESCBC.h:806
uint8_t * iv
Definition: AESCBC.h:744
AESCBC_Config * AESCBC_Handle
A handle that is returned from an AESCBC_open() call.
Definition: AESCBC.h:673
AES common module header for all devices.
CBC Parameters.
Definition: AESCBC.h:856
int_fast16_t AESCBC_setupDecrypt(AESCBC_Handle handle, const CryptoKey *key)
Function to prepare a segmented AESCBC decryption operation.
size_t inputLength
Definition: AESCBC.h:783
int_fast16_t AESCBC_setIV(AESCBC_Handle handle, const uint8_t *iv, size_t ivLength)
Function to set an initialization vector for an AES CBC segmented operation.
uint32_t timeout
Definition: AESCBC.h:860
void AESCBC_Params_init(AESCBC_Params *params)
Function to initialize the AESCBC_Params struct to its defaults.
void(* AESCBC_CallbackFxn)(AESCBC_Handle handle, int_fast16_t returnValue, AESCBC_OperationUnion *operation, AESCBC_OperationType operationType)
The definition of a callback function used by the AESCBC driver when used in AESCBC_RETURN_BEHAVIOR_C...
Definition: AESCBC.h:843