307 #ifndef ti_drivers_AESGCM__include 308 #define ti_drivers_AESGCM__include 332 #define AESGCM_STATUS_RESERVED (-32) 340 #define AESGCM_STATUS_SUCCESS (0) 348 #define AESGCM_STATUS_ERROR (-1) 358 #define AESGCM_STATUS_RESOURCE_UNAVAILABLE (-2) 367 #define AESGCM_STATUS_MAC_INVALID (-3) 372 #define AESGCM_STATUS_CANCELED (-4) 521 int_fast16_t returnValue,
The CryptoKey type is an opaque representation of a cryptographic key.
size_t aadLength
Definition: AESGCM.h:458
uint8_t * mac
Definition: AESGCM.h:452
uint8_t ivLength
Definition: AESGCM.h:466
int_fast16_t AESGCM_cancelOperation(AESGCM_Handle handle)
Cancels an ongoing AESGCM operation.
struct AESGCM_Operation_ AESGCM_Operation
Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a me...
Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a me...
Definition: AESGCM.h:429
const AESGCM_Params AESGCM_defaultParams
Default AESGCM_Params structure.
CryptoKey datastructure.
Definition: CryptoKey.h:210
AESGCM Global configuration.
Definition: AESGCM.h:497
struct AESGCM_Params_ AESGCM_Params
GCM Parameters.
CryptoKey * key
Definition: AESGCM.h:430
enum AESGCM_Mode_ AESGCM_Mode
Enum for the direction of the GCM operation.
size_t inputLength
Definition: AESGCM.h:462
enum AESGCM_ReturnBehavior_ AESGCM_ReturnBehavior
The way in which GCM function calls return after performing an encryption + authentication or decrypt...
int_fast16_t AESGCM_oneStepEncrypt(AESGCM_Handle handle, AESGCM_Operation *operationStruct)
Function to perform an AESGCM encryption + authentication operation in one call.
void AESGCM_Operation_init(AESGCM_Operation *operationStruct)
Function to initialize an AESGCM_Operation struct to its defaults.
void AESGCM_init(void)
This function initializes the GCM module.
int_fast16_t AESGCM_oneStepDecrypt(AESGCM_Handle handle, AESGCM_Operation *operationStruct)
Function to perform an AESGCM decryption + verification operation in one call.
uint32_t timeout
Definition: AESGCM.h:536
struct AESGCM_Config_ AESGCM_Config
AESGCM Global configuration.
AESGCM_OperationType_
Enum for the operation types supported by the driver.
Definition: AESGCM.h:481
void(* AESGCM_CallbackFxn)(AESGCM_Handle handle, int_fast16_t returnValue, AESGCM_Operation *operation, AESGCM_OperationType operationType)
The definition of a callback function used by the AESGCM driver when used in AESGCM_RETURN_BEHAVIOR_C...
Definition: AESGCM.h:520
uint8_t * input
Definition: AESGCM.h:435
struct AESGCM_Config_ * AESGCM_Handle
A handle that is returned from an AESGCM_open() call.
Definition: AESGCM.h:377
AESGCM_ReturnBehavior_
The way in which GCM function calls return after performing an encryption + authentication or decrypt...
Definition: AESGCM.h:400
uint8_t * aad
Definition: AESGCM.h:431
uint8_t * iv
Definition: AESGCM.h:446
void AESGCM_close(AESGCM_Handle handle)
Function to close a GCM peripheral specified by the GCM handle.
void AESGCM_Params_init(AESGCM_Params *params)
Function to initialize the AESGCM_Params struct to its defaults.
uint8_t * output
Definition: AESGCM.h:440
enum AESGCM_OperationType_ AESGCM_OperationType
Enum for the operation types supported by the driver.
void * object
Definition: AESGCM.h:499
void * custom
Definition: AESGCM.h:539
AESGCM_Mode_
Enum for the direction of the GCM operation.
Definition: AESGCM.h:420
void const * hwAttrs
Definition: AESGCM.h:502
AESGCM_Handle AESGCM_open(uint_least8_t index, AESGCM_Params *params)
This function opens a given GCM peripheral.
GCM Parameters.
Definition: AESGCM.h:533
AESGCM_CallbackFxn callbackFxn
Definition: AESGCM.h:535
AESGCM_ReturnBehavior returnBehavior
Definition: AESGCM.h:534
uint8_t macLength
Definition: AESGCM.h:469
bool ivInternallyGenerated
Definition: AESGCM.h:472