Data Structures | Macros | Typedefs | Functions
AESCTRCC26X4_s.h File Reference
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/AESCTR.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 AESCTRCC26X4_s.h:

Go to the source code of this file.

Data Structures

struct  AESCTR_s_SecureCallback
 
struct  AESCTR_s_ConstructMsg
 
struct  AESCTR_s_OpenMsg
 
struct  AESCTR_s_CallbackMsg
 
struct  AESCTR_s_CloseMsg
 
struct  AESCTR_s_OneStepOperationMsg
 
struct  AESCTR_s_SetupOperationMsg
 
struct  AESCTR_s_AddDataMsg
 
struct  AESCTR_s_CancelOperationMsg
 

Macros

#define AESCTR_S_MSG_TYPE_CONSTRUCT   AESCTR_S_MSG_TYPE(0U)
 
#define AESCTR_S_MSG_TYPE_OPEN   AESCTR_S_MSG_TYPE(1U)
 
#define AESCTR_S_MSG_TYPE_REGISTER_CALLBACK   AESCTR_S_MSG_TYPE(2U)
 
#define AESCTR_S_MSG_TYPE_CLOSE   AESCTR_S_MSG_TYPE(3U)
 
#define AESCTR_S_MSG_TYPE_ONE_STEP_ENCRYPT   AESCTR_S_MSG_TYPE(4U)
 
#define AESCTR_S_MSG_TYPE_ONE_STEP_DECRYPT   AESCTR_S_MSG_TYPE(5U)
 
#define AESCTR_S_MSG_TYPE_SETUP_ENCRYPT   AESCTR_S_MSG_TYPE(6U)
 
#define AESCTR_S_MSG_TYPE_SETUP_DECRYPT   AESCTR_S_MSG_TYPE(7U)
 
#define AESCTR_S_MSG_TYPE_ADD_DATA   AESCTR_S_MSG_TYPE(8U)
 
#define AESCTR_S_MSG_TYPE_FINALIZE   AESCTR_S_MSG_TYPE(9U)
 
#define AESCTR_S_MSG_TYPE_CANCEL_OPERATION   AESCTR_S_MSG_TYPE(10U)
 
#define CONFIG_AESCTR_S_CONFIG_POOL_SIZE   1
 
#define AESCTR_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCTR_COUNT + CONFIG_AESCTR_S_CONFIG_POOL_SIZE)
 

Typedefs

typedef AESCTR_s_AddDataMsg AESCTR_s_FinalizeMsg
 

Functions

psa_status_t AESCTR_s_handlePsaMsg (psa_msg_t *msg)
 Handles PSA messages for AES CTR secure driver. More...
 
void AESCTR_s_init (void)
 Initializes the AES CTR secure driver. More...
 

Macro Definition Documentation

§ AESCTR_S_MSG_TYPE_CONSTRUCT

#define AESCTR_S_MSG_TYPE_CONSTRUCT   AESCTR_S_MSG_TYPE(0U)

§ AESCTR_S_MSG_TYPE_OPEN

#define AESCTR_S_MSG_TYPE_OPEN   AESCTR_S_MSG_TYPE(1U)

§ AESCTR_S_MSG_TYPE_REGISTER_CALLBACK

#define AESCTR_S_MSG_TYPE_REGISTER_CALLBACK   AESCTR_S_MSG_TYPE(2U)

§ AESCTR_S_MSG_TYPE_CLOSE

#define AESCTR_S_MSG_TYPE_CLOSE   AESCTR_S_MSG_TYPE(3U)

§ AESCTR_S_MSG_TYPE_ONE_STEP_ENCRYPT

#define AESCTR_S_MSG_TYPE_ONE_STEP_ENCRYPT   AESCTR_S_MSG_TYPE(4U)

§ AESCTR_S_MSG_TYPE_ONE_STEP_DECRYPT

#define AESCTR_S_MSG_TYPE_ONE_STEP_DECRYPT   AESCTR_S_MSG_TYPE(5U)

§ AESCTR_S_MSG_TYPE_SETUP_ENCRYPT

#define AESCTR_S_MSG_TYPE_SETUP_ENCRYPT   AESCTR_S_MSG_TYPE(6U)

§ AESCTR_S_MSG_TYPE_SETUP_DECRYPT

#define AESCTR_S_MSG_TYPE_SETUP_DECRYPT   AESCTR_S_MSG_TYPE(7U)

§ AESCTR_S_MSG_TYPE_ADD_DATA

#define AESCTR_S_MSG_TYPE_ADD_DATA   AESCTR_S_MSG_TYPE(8U)

§ AESCTR_S_MSG_TYPE_FINALIZE

#define AESCTR_S_MSG_TYPE_FINALIZE   AESCTR_S_MSG_TYPE(9U)

§ AESCTR_S_MSG_TYPE_CANCEL_OPERATION

#define AESCTR_S_MSG_TYPE_CANCEL_OPERATION   AESCTR_S_MSG_TYPE(10U)

§ CONFIG_AESCTR_S_CONFIG_POOL_SIZE

#define CONFIG_AESCTR_S_CONFIG_POOL_SIZE   1

§ AESCTR_SECURE_CALLBACK_COUNT

#define AESCTR_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCTR_COUNT + CONFIG_AESCTR_S_CONFIG_POOL_SIZE)

Typedef Documentation

§ AESCTR_s_FinalizeMsg

Function Documentation

§ AESCTR_s_handlePsaMsg()

psa_status_t AESCTR_s_handlePsaMsg ( psa_msg_t *  msg)

Handles PSA messages for AES CTR 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.

§ AESCTR_s_init()

void AESCTR_s_init ( void  )

Initializes the AES CTR 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