561 #ifndef ti_drivers_AESCBC__include 562 #define ti_drivers_AESCBC__include 586 #define AESCBC_STATUS_RESERVED (-32) 594 #define AESCBC_STATUS_SUCCESS (0) 602 #define AESCBC_STATUS_ERROR (-1) 612 #define AESCBC_STATUS_RESOURCE_UNAVAILABLE (-2) 617 #define AESCBC_STATUS_CANCELED (-3) 626 #define AESCBC_STATUS_FEATURE_NOT_SUPPORTED (-4) 812 int_fast16_t returnValue,
1028 int_fast16_t
AESCBC_setIV(AESCBC_Handle handle,
const uint8_t *iv,
size_t ivLength);
1056 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:704
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:825
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.
struct AESCBC_Config_ AESCBC_Config
AESCBC Global configuration.
uint8_t * output
Definition: AESCBC.h:746
CryptoKey datastructure.
Definition: CryptoKey.h:192
AESCBC_CallbackFxn callbackFxn
Definition: AESCBC.h:826
AESCBC_Mode
Enum for the direction of the CBC operation.
Definition: AESCBC.h:693
AESCBC_ReturnBehavior
The way in which CBC function calls return after performing an encryption or decryption operation...
Definition: AESCBC.h:673
uint8_t * input
Definition: AESCBC.h:741
Struct containing the parameters required for encrypting/decrypting a message in a segmented operatio...
Definition: AESCBC.h:740
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:768
AESCBC_Handle AESCBC_construct(AESCBC_Config *config, const AESCBC_Params *params)
Constructs a new AESCBC object.
uint8_t * output
Definition: AESCBC.h:709
Struct containing the parameters required for encrypting/decrypting a message in a single-step operat...
Definition: AESCBC.h:702
AESCBC_SegmentedOperation segmentedOperation
Definition: AESCBC.h:778
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:703
void AESCBC_init(void)
This function initializes the CBC module.
AESCBC Global configuration.
Definition: AESCBC.h:639
void const * hwAttrs
Definition: AESCBC.h:644
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:729
void * custom
Definition: AESCBC.h:830
AESCBC_OneStepOperation oneStepOperation
Definition: AESCBC.h:777
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:785
size_t inputLength
Definition: AESCBC.h:721
Union containing a reference to a one step or segmented operation.
Definition: AESCBC.h:775
uint8_t * iv
Definition: AESCBC.h:715
AESCBC_Config * AESCBC_Handle
A handle that is returned from an AESCBC_open() call.
Definition: AESCBC.h:650
CBC Parameters.
Definition: AESCBC.h:824
int_fast16_t AESCBC_setupDecrypt(AESCBC_Handle handle, const CryptoKey *key)
Function to prepare a segmented AESCBC decryption operation.
void * object
Definition: AESCBC.h:641
size_t inputLength
Definition: AESCBC.h:752
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:827
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:811