#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 |
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 (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) |
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.