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

Go to the source code of this file.

Data Structures

struct  AESCMAC_s_SecureCallback
 
struct  AESCMAC_s_ConstructMsg
 
struct  AESCMAC_s_OpenMsg
 
struct  AESCMAC_s_CallbackMsg
 
struct  AESCMAC_s_CloseMsg
 
struct  AESCMAC_s_OneStepOperationMsg
 
struct  AESCMAC_s_SetupOperationMsg
 
struct  AESCMAC_s_AddDataMsg
 
struct  AESCMAC_s_CancelOperationMsg
 

Macros

#define AESCMAC_S_MSG_TYPE_CONSTRUCT   AESCMAC_S_MSG_TYPE(0U)
 
#define AESCMAC_S_MSG_TYPE_OPEN   AESCMAC_S_MSG_TYPE(1U)
 
#define AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK   AESCMAC_S_MSG_TYPE(2U)
 
#define AESCMAC_S_MSG_TYPE_CLOSE   AESCMAC_S_MSG_TYPE(3U)
 
#define AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN   AESCMAC_S_MSG_TYPE(4U)
 
#define AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY   AESCMAC_S_MSG_TYPE(5U)
 
#define AESCMAC_S_MSG_TYPE_SETUP_SIGN   AESCMAC_S_MSG_TYPE(6U)
 
#define AESCMAC_S_MSG_TYPE_SETUP_VERIFY   AESCMAC_S_MSG_TYPE(7U)
 
#define AESCMAC_S_MSG_TYPE_ADD_DATA   AESCMAC_S_MSG_TYPE(8U)
 
#define AESCMAC_S_MSG_TYPE_FINALIZE   AESCMAC_S_MSG_TYPE(9U)
 
#define AESCMAC_S_MSG_TYPE_CANCEL_OPERATION   AESCMAC_S_MSG_TYPE(10U)
 
#define CONFIG_AESCMAC_S_CONFIG_POOL_SIZE   1
 
#define AESCMAC_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCMAC_COUNT + CONFIG_AESCMAC_S_CONFIG_POOL_SIZE)
 

Typedefs

typedef AESCMAC_s_AddDataMsg AESCMAC_s_FinalizeMsg
 

Functions

psa_status_t AESCMAC_s_handlePsaMsg (psa_msg_t *msg)
 Handles PSA messages for AES CMAC secure driver. More...
 
void AESCMAC_s_init (void)
 Initializes the AES CMAC secure driver. More...
 

Macro Definition Documentation

§ AESCMAC_S_MSG_TYPE_CONSTRUCT

#define AESCMAC_S_MSG_TYPE_CONSTRUCT   AESCMAC_S_MSG_TYPE(0U)

§ AESCMAC_S_MSG_TYPE_OPEN

#define AESCMAC_S_MSG_TYPE_OPEN   AESCMAC_S_MSG_TYPE(1U)

§ AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK

#define AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK   AESCMAC_S_MSG_TYPE(2U)

§ AESCMAC_S_MSG_TYPE_CLOSE

#define AESCMAC_S_MSG_TYPE_CLOSE   AESCMAC_S_MSG_TYPE(3U)

§ AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN

#define AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN   AESCMAC_S_MSG_TYPE(4U)

§ AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY

#define AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY   AESCMAC_S_MSG_TYPE(5U)

§ AESCMAC_S_MSG_TYPE_SETUP_SIGN

#define AESCMAC_S_MSG_TYPE_SETUP_SIGN   AESCMAC_S_MSG_TYPE(6U)

§ AESCMAC_S_MSG_TYPE_SETUP_VERIFY

#define AESCMAC_S_MSG_TYPE_SETUP_VERIFY   AESCMAC_S_MSG_TYPE(7U)

§ AESCMAC_S_MSG_TYPE_ADD_DATA

#define AESCMAC_S_MSG_TYPE_ADD_DATA   AESCMAC_S_MSG_TYPE(8U)

§ AESCMAC_S_MSG_TYPE_FINALIZE

#define AESCMAC_S_MSG_TYPE_FINALIZE   AESCMAC_S_MSG_TYPE(9U)

§ AESCMAC_S_MSG_TYPE_CANCEL_OPERATION

#define AESCMAC_S_MSG_TYPE_CANCEL_OPERATION   AESCMAC_S_MSG_TYPE(10U)

§ CONFIG_AESCMAC_S_CONFIG_POOL_SIZE

#define CONFIG_AESCMAC_S_CONFIG_POOL_SIZE   1

§ AESCMAC_SECURE_CALLBACK_COUNT

#define AESCMAC_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_AESCMAC_COUNT + CONFIG_AESCMAC_S_CONFIG_POOL_SIZE)

Typedef Documentation

§ AESCMAC_s_FinalizeMsg

Function Documentation

§ AESCMAC_s_handlePsaMsg()

psa_status_t AESCMAC_s_handlePsaMsg ( psa_msg_t *  msg)

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

§ AESCMAC_s_init()

void AESCMAC_s_init ( void  )

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