#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>
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... | |
#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) |
psa_status_t AESCMAC_s_handlePsaMsg | ( | psa_msg_t * | msg | ) |
Handles PSA messages for AES CMAC secure driver.
[in] | msg | pointer to PSA message |
PSA_SUCCESS | if successful. |
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses. |
void AESCMAC_s_init | ( | void | ) |
Initializes the AES CMAC secure driver.