33 #ifndef ti_drivers_aesecb_AESECBCC26X4_s__include 34 #define ti_drivers_aesecb_AESECBCC26X4_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 AESECB_S_MSG_TYPE_CONSTRUCT (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U))) 61 #define AESECB_S_MSG_TYPE_OPEN (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U))) 62 #define AESECB_S_MSG_TYPE_REGISTER_CALLBACK \ 63 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U))) 64 #define AESECB_S_MSG_TYPE_CLOSE (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U))) 65 #define AESECB_S_MSG_TYPE_ONE_STEP_ENCRYPT \ 66 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U))) 67 #define AESECB_S_MSG_TYPE_ONE_STEP_DECRYPT \ 68 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U))) 69 #define AESECB_S_MSG_TYPE_SETUP_ENCRYPT \ 70 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U))) 71 #define AESECB_S_MSG_TYPE_SETUP_DECRYPT \ 72 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U))) 73 #define AESECB_S_MSG_TYPE_ADD_DATA (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U))) 74 #define AESECB_S_MSG_TYPE_FINALIZE (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U))) 75 #define AESECB_S_MSG_TYPE_CANCEL_OPERATION \ 76 (CRYPTO_S_MSG_TYPE_INDEX_AESECB | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 10U))) 82 #ifndef CONFIG_AESECB_S_CONFIG_POOL_SIZE 83 #define CONFIG_AESECB_S_CONFIG_POOL_SIZE 1 86 #define AESECB_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_AESECB_COUNT + CONFIG_AESECB_S_CONFIG_POOL_SIZE) AESECB_Operation * operation
Definition: AESECBCC26X4_s.h:97
AESECB_s_OperationMsg AESECB_s_OneStepOperationMsg
Definition: AESECBCC26X4_s.h:139
Definition: SecureCallback.h:51
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:124
AES Global configuration.
Definition: AESCommon.h:154
AESECB_Config * config
Definition: AESECBCC26X4_s.h:112
CryptoKey datastructure.
Definition: CryptoKey.h:192
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:135
Definition: AESECBCC26X4_s.h:133
const CryptoKey * key
Definition: AESECBCC26X4_s.h:144
ECB Parameters.
Definition: AESECB.h:665
AESECB_s_SecureCallback * callback
Definition: AESECBCC26X4_s.h:125
Definition: AESECBCC26X4_s.h:128
Definition: AESECBCC26X4_s.h:91
int_fast16_t returnValue
Definition: AESECBCC26X4_s.h:96
Struct containing the parameters required for encrypting/decrypting and a message.
Definition: AESECB.h:581
Definition: AESECBCC26X4_s.h:110
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:153
const AESECB_Params * params
Definition: AESECBCC26X4_s.h:113
psa_status_t AESECB_s_handlePsaMsg(psa_msg_t *msg)
Handles PSA messages for AES ECB secure driver.
SecureCallback_Object object
Definition: AESECBCC26X4_s.h:93
void AESECB_s_init(void)
Initializes the AES ECB secure driver.
const AESECB_Params * params
Definition: AESECBCC26X4_s.h:119
Definition: AESECBCC26X4_s.h:122
AESECB_OperationType operationType
Definition: AESECBCC26X4_s.h:98
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:130
Definition: AESECBCC26X4_s.h:151
AESECB_s_OperationMsg AESECB_s_FinalizeMsg
Definition: AESECBCC26X4_s.h:149
AESECB_OperationType
Enum for the operation types supported by the driver.
Definition: AESECB.h:627
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:95
AESECB_Operation * operation
Definition: AESECBCC26X4_s.h:136
uint_least8_t index
Definition: AESECBCC26X4_s.h:118
Definition: AESECBCC26X4_s.h:141
AESECB_Handle handle
Definition: AESECBCC26X4_s.h:143
Definition: AESECBCC26X4_s.h:116
AESECB_s_OperationMsg AESECB_s_AddDataMsg
Definition: AESECBCC26X4_s.h:147