33 #ifndef ti_drivers_aesccm_AESCCMCC26X4_s__include 34 #define ti_drivers_aesccm_AESCCMCC26X4_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_BUILD) 47 #include "ti_drivers_config.h" 62 #define AESCCM_S_MSG_TYPE_CONSTRUCT AESCCM_S_MSG_TYPE(0U) 63 #define AESCCM_S_MSG_TYPE_OPEN AESCCM_S_MSG_TYPE(1U) 64 #define AESCCM_S_MSG_TYPE_REGISTER_CALLBACK AESCCM_S_MSG_TYPE(2U) 65 #define AESCCM_S_MSG_TYPE_CLOSE AESCCM_S_MSG_TYPE(3U) 66 #define AESCCM_S_MSG_TYPE_ONE_STEP_ENCRYPT AESCCM_S_MSG_TYPE(4U) 67 #define AESCCM_S_MSG_TYPE_ONE_STEP_DECRYPT AESCCM_S_MSG_TYPE(5U) 68 #define AESCCM_S_MSG_TYPE_SETUP_ENCRYPT AESCCM_S_MSG_TYPE(6U) 69 #define AESCCM_S_MSG_TYPE_SETUP_DECRYPT AESCCM_S_MSG_TYPE(7U) 70 #define AESCCM_S_MSG_TYPE_SET_LENGTHS AESCCM_S_MSG_TYPE(8U) 71 #define AESCCM_S_MSG_TYPE_SET_NONCE AESCCM_S_MSG_TYPE(9U) 72 #define AESCCM_S_MSG_TYPE_ADD_AAD AESCCM_S_MSG_TYPE(10U) 73 #define AESCCM_S_MSG_TYPE_ADD_DATA AESCCM_S_MSG_TYPE(11U) 74 #define AESCCM_S_MSG_TYPE_FINALIZE_ENCRYPT AESCCM_S_MSG_TYPE(12U) 75 #define AESCCM_S_MSG_TYPE_FINALIZE_DECRYPT AESCCM_S_MSG_TYPE(13U) 76 #define AESCCM_S_MSG_TYPE_CANCEL_OPERATION AESCCM_S_MSG_TYPE(14U) 82 #ifndef CONFIG_AESCCM_S_CONFIG_POOL_SIZE 83 #define CONFIG_AESCCM_S_CONFIG_POOL_SIZE 1 86 #define AESCCM_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_AESCCM_COUNT + CONFIG_AESCCM_S_CONFIG_POOL_SIZE) Definition: AESCCMCC26X4_s.h:112
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:132
size_t plaintextLength
Definition: AESCCMCC26X4_s.h:146
AESCCM_OperationType operationType
Definition: AESCCMCC26X4_s.h:100
Definition: AESCCMCC26X4_s.h:158
const AESCCM_Params * params
Definition: AESCCMCC26X4_s.h:115
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:152
Definition: SecureCallback.h:51
int_fast16_t returnValue
Definition: AESCCMCC26X4_s.h:98
Struct containing the parameters required for encrypting/decrypting a message in a segmented operatio...
Definition: AESCCM.h:947
Definition: AESCCMCC26X4_s.h:135
Struct containing the parameters required for finalizing an encryption/decryption and authentication/...
Definition: AESCCM.h:972
size_t aadLength
Definition: AESCCMCC26X4_s.h:153
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:97
uint_least8_t index
Definition: AESCCMCC26X4_s.h:120
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:185
Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a me...
Definition: AESCCM.h:870
AESCCM_SegmentedDataOperation * operation
Definition: AESCCMCC26X4_s.h:174
const uint8_t * nonce
Definition: AESCCMCC26X4_s.h:161
AES Global configuration.
Definition: AESCommon.h:154
size_t nonceLength
Definition: AESCCMCC26X4_s.h:162
CCM Parameters.
Definition: AESCCM.h:1072
CryptoKey datastructure.
Definition: CryptoKey.h:196
psa_status_t AESCCM_s_handlePsaMsg(psa_msg_t *msg)
Handles PSA messages for AES CCM secure driver.
int_fast16_t AESCCM_s_oneStepDecryptFast(AESCCM_Handle handle, AESCCM_Operation *operation)
Fast veneer to perform a single-step AESCCM decryption & verification operation in polling mode witho...
AESCCM_s_SecureCallback * callback
Definition: AESCCMCC26X4_s.h:127
AESCCM_SegmentedFinalizeOperation * operation
Definition: AESCCMCC26X4_s.h:180
const CryptoKey * key
Definition: AESCCMCC26X4_s.h:144
Struct containing the parameters required for authenticating/verifying additional data in a segmented...
Definition: AESCCM.h:929
size_t macLength
Definition: AESCCMCC26X4_s.h:155
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:143
Definition: AESCCMCC26X4_s.h:130
Definition: AESCCMCC26X4_s.h:183
Definition: AESCCMCC26X4_s.h:93
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:167
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:179
size_t aadLength
Definition: AESCCMCC26X4_s.h:145
Definition: AESCCMCC26X4_s.h:165
Definition: AESCCMCC26X4_s.h:118
AESCCM_SegmentedAADOperation * operation
Definition: AESCCMCC26X4_s.h:168
size_t plaintextLength
Definition: AESCCMCC26X4_s.h:154
Definition: AESCCMCC26X4_s.h:171
size_t macLength
Definition: AESCCMCC26X4_s.h:147
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:173
Union containing a reference to a one step, segmented AAD, segmented data, or segmented finalize oper...
Definition: AESCCM.h:1017
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:137
AESCCM_Config * config
Definition: AESCCMCC26X4_s.h:114
void AESCCM_s_init(void)
Initializes the AES CCM secure driver.
Definition: AESCCMCC26X4_s.h:177
AESCCM_OperationType
Enum for the operation types supported by the driver.
Definition: AESCCM.h:1029
AESCCM_OperationUnion * operation
Definition: AESCCMCC26X4_s.h:99
AESCCM_OneStepOperation * operation
Definition: AESCCMCC26X4_s.h:138
Definition: AESCCMCC26X4_s.h:124
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:126
const AESCCM_Params * params
Definition: AESCCMCC26X4_s.h:121
SecureCallback_Object object
Definition: AESCCMCC26X4_s.h:95
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:160
int_fast16_t AESCCM_s_oneStepEncryptFast(AESCCM_Handle handle, AESCCM_Operation *operation)
Fast veneer to perform a single-step AESCCM encryption & authentication operation in polling mode wit...
Definition: AESCCMCC26X4_s.h:141
Definition: AESCCMCC26X4_s.h:150