Data Structures | Macros | Typedefs | Functions
AESCBCCC26X4_s.h File Reference
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/AESCBC.h>
#include <ti/drivers/tfm/SecureCallback.h>
#include <third_party/tfm/interface/include/psa/error.h>
#include <third_party/tfm/interface/include/psa/service.h>
Include dependency graph for AESCBCCC26X4_s.h:

Go to the source code of this file.

Data Structures

struct  AESCBC_s_SecureCallback
 
struct  AESCBC_s_ConstructMsg
 
struct  AESCBC_s_OpenMsg
 
struct  AESCBC_s_CallbackMsg
 
struct  AESCBC_s_CloseMsg
 
struct  AESCBC_s_OneStepOperationMsg
 
struct  AESCBC_s_SetupOperationMsg
 
struct  AESCBC_s_SetIVMsg
 
struct  AESCBC_s_AddDataMsg
 
struct  AESCBC_s_CancelOperationMsg
 

Macros

#define AESCBC_S_MSG_TYPE_CONSTRUCT   AESCBC_S_MSG_TYPE(0U)
 
#define AESCBC_S_MSG_TYPE_OPEN   AESCBC_S_MSG_TYPE(1U)
 
#define AESCBC_S_MSG_TYPE_REGISTER_CALLBACK   AESCBC_S_MSG_TYPE(2U)
 
#define AESCBC_S_MSG_TYPE_CLOSE   AESCBC_S_MSG_TYPE(3U)
 
#define AESCBC_S_MSG_TYPE_ONE_STEP_ENCRYPT   AESCBC_S_MSG_TYPE(4U)
 
#define AESCBC_S_MSG_TYPE_ONE_STEP_DECRYPT   AESCBC_S_MSG_TYPE(5U)
 
#define AESCBC_S_MSG_TYPE_SETUP_ENCRYPT   AESCBC_S_MSG_TYPE(6U)
 
#define AESCBC_S_MSG_TYPE_SETUP_DECRYPT   AESCBC_S_MSG_TYPE(7U)
 
#define AESCBC_S_MSG_TYPE_SET_IV   AESCBC_S_MSG_TYPE(8U)
 
#define AESCBC_S_MSG_TYPE_ADD_DATA   AESCBC_S_MSG_TYPE(9U)
 
#define AESCBC_S_MSG_TYPE_FINALIZE   AESCBC_S_MSG_TYPE(10U)
 
#define AESCBC_S_MSG_TYPE_CANCEL_OPERATION   AESCBC_S_MSG_TYPE(11U)
 
#define CONFIG_AESCBC_S_CONFIG_POOL_SIZE   1
 
#define AESCBC_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCBC_COUNT + CONFIG_AESCBC_S_CONFIG_POOL_SIZE)
 

Typedefs

typedef AESCBC_s_AddDataMsg AESCBC_s_FinalizeMsg
 

Functions

psa_status_t AESCBC_s_handlePsaMsg (psa_msg_t *msg)
 Handles PSA messages for AES CBC secure driver. More...
 
void AESCBC_s_init (void)
 Initializes the AES CBC secure driver. More...
 

Macro Definition Documentation

§ AESCBC_S_MSG_TYPE_CONSTRUCT

#define AESCBC_S_MSG_TYPE_CONSTRUCT   AESCBC_S_MSG_TYPE(0U)

§ AESCBC_S_MSG_TYPE_OPEN

#define AESCBC_S_MSG_TYPE_OPEN   AESCBC_S_MSG_TYPE(1U)

§ AESCBC_S_MSG_TYPE_REGISTER_CALLBACK

#define AESCBC_S_MSG_TYPE_REGISTER_CALLBACK   AESCBC_S_MSG_TYPE(2U)

§ AESCBC_S_MSG_TYPE_CLOSE

#define AESCBC_S_MSG_TYPE_CLOSE   AESCBC_S_MSG_TYPE(3U)

§ AESCBC_S_MSG_TYPE_ONE_STEP_ENCRYPT

#define AESCBC_S_MSG_TYPE_ONE_STEP_ENCRYPT   AESCBC_S_MSG_TYPE(4U)

§ AESCBC_S_MSG_TYPE_ONE_STEP_DECRYPT

#define AESCBC_S_MSG_TYPE_ONE_STEP_DECRYPT   AESCBC_S_MSG_TYPE(5U)

§ AESCBC_S_MSG_TYPE_SETUP_ENCRYPT

#define AESCBC_S_MSG_TYPE_SETUP_ENCRYPT   AESCBC_S_MSG_TYPE(6U)

§ AESCBC_S_MSG_TYPE_SETUP_DECRYPT

#define AESCBC_S_MSG_TYPE_SETUP_DECRYPT   AESCBC_S_MSG_TYPE(7U)

§ AESCBC_S_MSG_TYPE_SET_IV

#define AESCBC_S_MSG_TYPE_SET_IV   AESCBC_S_MSG_TYPE(8U)

§ AESCBC_S_MSG_TYPE_ADD_DATA

#define AESCBC_S_MSG_TYPE_ADD_DATA   AESCBC_S_MSG_TYPE(9U)

§ AESCBC_S_MSG_TYPE_FINALIZE

#define AESCBC_S_MSG_TYPE_FINALIZE   AESCBC_S_MSG_TYPE(10U)

§ AESCBC_S_MSG_TYPE_CANCEL_OPERATION

#define AESCBC_S_MSG_TYPE_CANCEL_OPERATION   AESCBC_S_MSG_TYPE(11U)

§ CONFIG_AESCBC_S_CONFIG_POOL_SIZE

#define CONFIG_AESCBC_S_CONFIG_POOL_SIZE   1

§ AESCBC_SECURE_CALLBACK_COUNT

#define AESCBC_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCBC_COUNT + CONFIG_AESCBC_S_CONFIG_POOL_SIZE)

Typedef Documentation

§ AESCBC_s_FinalizeMsg

Function Documentation

§ AESCBC_s_handlePsaMsg()

psa_status_t AESCBC_s_handlePsaMsg ( psa_msg_t *  msg)

Handles PSA messages for AES CBC secure driver.

Note
This function should be called by secure partition thread only.
Parameters
[in]msgpointer to PSA message
Return values
PSA_SUCCESSif successful.
PSA_ERROR_PROGRAMMER_ERRORif any args point to secure addresses.

§ AESCBC_s_init()

void AESCBC_s_init ( void  )

Initializes the AES CBC secure driver.

Note
This function should be called by secure partition thread only.
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale