33 #ifndef ti_drivers_aesctr_AESCTRCC26X4_s__include 34 #define ti_drivers_aesctr_AESCTRCC26X4_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 AESCTR_S_MSG_TYPE_CONSTRUCT (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U))) 61 #define AESCTR_S_MSG_TYPE_OPEN (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U))) 62 #define AESCTR_S_MSG_TYPE_REGISTER_CALLBACK \ 63 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U))) 64 #define AESCTR_S_MSG_TYPE_CLOSE (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U))) 65 #define AESCTR_S_MSG_TYPE_ONE_STEP_ENCRYPT \ 66 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U))) 67 #define AESCTR_S_MSG_TYPE_ONE_STEP_DECRYPT \ 68 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U))) 69 #define AESCTR_S_MSG_TYPE_SETUP_ENCRYPT \ 70 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U))) 71 #define AESCTR_S_MSG_TYPE_SETUP_DECRYPT \ 72 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U))) 73 #define AESCTR_S_MSG_TYPE_ADD_DATA (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U))) 74 #define AESCTR_S_MSG_TYPE_FINALIZE (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U))) 75 #define AESCTR_S_MSG_TYPE_CANCEL_OPERATION \ 76 (CRYPTO_S_MSG_TYPE_INDEX_AESCTR | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 10U))) 82 #ifndef CONFIG_AESCTR_S_CONFIG_POOL_SIZE 83 #define CONFIG_AESCTR_S_CONFIG_POOL_SIZE 1 86 #define AESCTR_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_AESCTR_COUNT + CONFIG_AESCTR_S_CONFIG_POOL_SIZE) AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:148
Definition: AESCTRCC26X4_s.h:139
Definition: AESCTRCC26X4_s.h:154
Definition: AESCTRCC26X4_s.h:91
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:135
Definition: SecureCallback.h:51
Definition: AESCTRCC26X4_s.h:133
CTR Parameters.
Definition: AESCTR.h:679
const uint8_t * initialCounter
Definition: AESCTRCC26X4_s.h:143
Struct containing the parameters required for encrypting/decrypting a message using a one-step operat...
Definition: AESCTR.h:510
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:130
Definition: AESCTRCC26X4_s.h:128
AES Global configuration.
Definition: AESCommon.h:154
AESCTR_OperationType
Enum for the operation types supported by the driver.
Definition: AESCTR.h:623
CryptoKey datastructure.
Definition: CryptoKey.h:192
AESCTR_Config * config
Definition: AESCTRCC26X4_s.h:112
void AESCTR_s_init(void)
Initializes the AES CTR secure driver.
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:141
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:124
Definition: AESCTRCC26X4_s.h:116
const CryptoKey * key
Definition: AESCTRCC26X4_s.h:142
AESCTR_OperationUnion * operation
Definition: AESCTRCC26X4_s.h:97
Struct containing the parameters required for encrypting/decrypting a message using a segmented opera...
Definition: AESCTR.h:549
Definition: AESCTRCC26X4_s.h:110
AESCTR_s_AddDataMsg AESCTR_s_FinalizeMsg
Definition: AESCTRCC26X4_s.h:152
AESCTR_OperationType operationType
Definition: AESCTRCC26X4_s.h:98
psa_status_t AESCTR_s_handlePsaMsg(psa_msg_t *msg)
Handles PSA messages for AES CTR secure driver.
Definition: AESCTRCC26X4_s.h:146
SecureCallback_Object object
Definition: AESCTRCC26X4_s.h:93
int_fast16_t returnValue
Definition: AESCTRCC26X4_s.h:96
AESCTR_s_SecureCallback * callback
Definition: AESCTRCC26X4_s.h:125
AESCTR_OneStepOperation * operation
Definition: AESCTRCC26X4_s.h:136
Definition: AESCTRCC26X4_s.h:122
uint_least8_t index
Definition: AESCTRCC26X4_s.h:118
const AESCTR_Params * params
Definition: AESCTRCC26X4_s.h:113
AESCTR_SegmentedOperation * operation
Definition: AESCTRCC26X4_s.h:149
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:156
Union containing a reference to a one-step and segmented operation structure.
Definition: AESCTR.h:585
const AESCTR_Params * params
Definition: AESCTRCC26X4_s.h:119
AESCTR_Handle handle
Definition: AESCTRCC26X4_s.h:95