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   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U)))
 
#define AESCMAC_S_MSG_TYPE_OPEN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U)))
 
#define AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U)))
 
#define AESCMAC_S_MSG_TYPE_CLOSE   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U)))
 
#define AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U)))
 
#define AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U)))
 
#define AESCMAC_S_MSG_TYPE_SETUP_SIGN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U)))
 
#define AESCMAC_S_MSG_TYPE_SETUP_VERIFY   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U)))
 
#define AESCMAC_S_MSG_TYPE_ADD_DATA   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U)))
 
#define AESCMAC_S_MSG_TYPE_FINALIZE   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U)))
 
#define AESCMAC_S_MSG_TYPE_CANCEL_OPERATION   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 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   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U)))

§ AESCMAC_S_MSG_TYPE_OPEN

#define AESCMAC_S_MSG_TYPE_OPEN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U)))

§ AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK

#define AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U)))

§ AESCMAC_S_MSG_TYPE_CLOSE

#define AESCMAC_S_MSG_TYPE_CLOSE   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U)))

§ AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN

#define AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U)))

§ AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY

#define AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U)))

§ AESCMAC_S_MSG_TYPE_SETUP_SIGN

#define AESCMAC_S_MSG_TYPE_SETUP_SIGN   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U)))

§ AESCMAC_S_MSG_TYPE_SETUP_VERIFY

#define AESCMAC_S_MSG_TYPE_SETUP_VERIFY   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U)))

§ AESCMAC_S_MSG_TYPE_ADD_DATA

#define AESCMAC_S_MSG_TYPE_ADD_DATA   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U)))

§ AESCMAC_S_MSG_TYPE_FINALIZE

#define AESCMAC_S_MSG_TYPE_FINALIZE   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U)))

§ AESCMAC_S_MSG_TYPE_CANCEL_OPERATION

#define AESCMAC_S_MSG_TYPE_CANCEL_OPERATION   (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 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