33 #ifndef ti_drivers_aescmac_AESCMACCC26X4_s__include 34 #define ti_drivers_aescmac_AESCMACCC26X4_s__include 43 #include <third_party/tfm/interface/include/psa/error.h> 44 #include <third_party/tfm/interface/include/psa/service.h> 46 #if defined(TFM_PSA_API) 47 #include "ti_drivers_config.h" 60 #define AESCMAC_S_MSG_TYPE_CONSTRUCT (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U))) 61 #define AESCMAC_S_MSG_TYPE_OPEN (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U))) 62 #define AESCMAC_S_MSG_TYPE_REGISTER_CALLBACK \ 63 (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U))) 64 #define AESCMAC_S_MSG_TYPE_CLOSE (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U))) 65 #define AESCMAC_S_MSG_TYPE_ONE_STEP_SIGN \ 66 (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U))) 67 #define AESCMAC_S_MSG_TYPE_ONE_STEP_VERIFY \ 68 (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U))) 69 #define AESCMAC_S_MSG_TYPE_SETUP_SIGN (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U))) 70 #define AESCMAC_S_MSG_TYPE_SETUP_VERIFY \ 71 (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U))) 72 #define AESCMAC_S_MSG_TYPE_ADD_DATA (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U))) 73 #define AESCMAC_S_MSG_TYPE_FINALIZE (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U))) 74 #define AESCMAC_S_MSG_TYPE_CANCEL_OPERATION \ 75 (CRYPTO_S_MSG_TYPE_INDEX_AESCMAC | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 10U))) 81 #ifndef CONFIG_AESCMAC_S_CONFIG_POOL_SIZE 82 #define CONFIG_AESCMAC_S_CONFIG_POOL_SIZE 1 85 #define AESCMAC_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_AESCMAC_COUNT + CONFIG_AESCMAC_S_CONFIG_POOL_SIZE) AESCMAC_s_AddDataMsg AESCMAC_s_FinalizeMsg
Definition: AESCMACCC26X4_s.h:151
Definition: AESCMACCC26X4_s.h:90
void AESCMAC_s_init(void)
Initializes the AES CMAC secure driver.
psa_status_t AESCMAC_s_handlePsaMsg(psa_msg_t *msg)
Handles PSA messages for AES CMAC secure driver.
Definition: SecureCallback.h:51
CryptoKey * key
Definition: AESCMACCC26X4_s.h:136
Definition: AESCMACCC26X4_s.h:145
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:129
Definition: AESCMACCC26X4_s.h:115
AESCMAC_s_SecureCallback * callback
Definition: AESCMACCC26X4_s.h:124
AES Global configuration.
Definition: AESCommon.h:154
AESCMAC_OperationType operationType
Definition: AESCMACCC26X4_s.h:97
SecureCallback_Object object
Definition: AESCMACCC26X4_s.h:92
AESCMAC_Config * config
Definition: AESCMACCC26X4_s.h:111
CryptoKey datastructure.
Definition: CryptoKey.h:192
AESCMAC_OperationType
Enum for the operation types supported by the driver.
Definition: AESCMAC.h:715
Definition: AESCMACCC26X4_s.h:153
Definition: AESCMACCC26X4_s.h:139
AESCMAC_Operation * operation
Definition: AESCMACCC26X4_s.h:135
const AESCMAC_Params * params
Definition: AESCMACCC26X4_s.h:118
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:141
AESCMAC_Operation * operation
Definition: AESCMACCC26X4_s.h:96
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:155
uint_least8_t index
Definition: AESCMACCC26X4_s.h:117
int_fast16_t returnValue
Definition: AESCMACCC26X4_s.h:95
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:123
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:94
const AESCMAC_Params * params
Definition: AESCMACCC26X4_s.h:112
AESCMAC Parameters.
Definition: AESCMAC.h:752
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:147
AESCMAC (CMAC and CBC-MAC) driver header.
AESCMAC_Handle handle
Definition: AESCMACCC26X4_s.h:134
AESCMAC_Operation * operation
Definition: AESCMACCC26X4_s.h:148
const CryptoKey * key
Definition: AESCMACCC26X4_s.h:142
Definition: AESCMACCC26X4_s.h:132
Struct containing the parameters required for signing or verifying a message.
Definition: AESCMAC.h:661
Definition: AESCMACCC26X4_s.h:121
Definition: AESCMACCC26X4_s.h:127
Definition: AESCMACCC26X4_s.h:109