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_PSA_API) 47 #include "ti_drivers_config.h" 65 #define AESCCM_S_MSG_TYPE_CONSTRUCT (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U))) 66 #define AESCCM_S_MSG_TYPE_OPEN (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U))) 67 #define AESCCM_S_MSG_TYPE_REGISTER_CALLBACK \ 68 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U))) 69 #define AESCCM_S_MSG_TYPE_CLOSE (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U))) 70 #define AESCCM_S_MSG_TYPE_ONE_STEP_ENCRYPT \ 71 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U))) 72 #define AESCCM_S_MSG_TYPE_ONE_STEP_DECRYPT \ 73 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U))) 74 #define AESCCM_S_MSG_TYPE_SETUP_ENCRYPT \ 75 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 6U))) 76 #define AESCCM_S_MSG_TYPE_SETUP_DECRYPT \ 77 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 7U))) 78 #define AESCCM_S_MSG_TYPE_SET_LENGTHS (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 8U))) 79 #define AESCCM_S_MSG_TYPE_SET_NONCE (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 9U))) 80 #define AESCCM_S_MSG_TYPE_ADD_AAD (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 10U))) 81 #define AESCCM_S_MSG_TYPE_ADD_DATA (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 11U))) 82 #define AESCCM_S_MSG_TYPE_FINALIZE_ENCRYPT \ 83 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 12U))) 84 #define AESCCM_S_MSG_TYPE_FINALIZE_DECRYPT \ 85 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 13U))) 86 #define AESCCM_S_MSG_TYPE_CANCEL_OPERATION \ 87 (CRYPTO_S_MSG_TYPE_INDEX_AESCCM | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 14U))) 93 #ifndef CONFIG_AESCCM_S_CONFIG_POOL_SIZE 94 #define CONFIG_AESCCM_S_CONFIG_POOL_SIZE 1 97 #define AESCCM_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_AESCCM_COUNT + CONFIG_AESCCM_S_CONFIG_POOL_SIZE) Definition: AESCCMCC26X4_s.h:121
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:141
size_t plaintextLength
Definition: AESCCMCC26X4_s.h:155
AESCCM_OperationType operationType
Definition: AESCCMCC26X4_s.h:109
Definition: AESCCMCC26X4_s.h:167
const AESCCM_Params * params
Definition: AESCCMCC26X4_s.h:124
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:161
Definition: SecureCallback.h:51
int_fast16_t returnValue
Definition: AESCCMCC26X4_s.h:107
Struct containing the parameters required for encrypting/decrypting a message in a segmented operatio...
Definition: AESCCM.h:947
Definition: AESCCMCC26X4_s.h:144
Struct containing the parameters required for finalizing an encryption/decryption and authentication/...
Definition: AESCCM.h:972
size_t aadLength
Definition: AESCCMCC26X4_s.h:162
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:106
uint_least8_t index
Definition: AESCCMCC26X4_s.h:129
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:194
Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a me...
Definition: AESCCM.h:870
AESCCM_SegmentedDataOperation * operation
Definition: AESCCMCC26X4_s.h:183
const uint8_t * nonce
Definition: AESCCMCC26X4_s.h:170
AES Global configuration.
Definition: AESCommon.h:154
size_t nonceLength
Definition: AESCCMCC26X4_s.h:171
CCM Parameters.
Definition: AESCCM.h:1072
CryptoKey datastructure.
Definition: CryptoKey.h:192
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:136
AESCCM_SegmentedFinalizeOperation * operation
Definition: AESCCMCC26X4_s.h:189
const CryptoKey * key
Definition: AESCCMCC26X4_s.h:153
Struct containing the parameters required for authenticating/verifying additional data in a segmented...
Definition: AESCCM.h:929
size_t macLength
Definition: AESCCMCC26X4_s.h:164
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:152
Definition: AESCCMCC26X4_s.h:139
Definition: AESCCMCC26X4_s.h:192
Definition: AESCCMCC26X4_s.h:102
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:176
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:188
size_t aadLength
Definition: AESCCMCC26X4_s.h:154
Definition: AESCCMCC26X4_s.h:174
Definition: AESCCMCC26X4_s.h:127
AESCCM_SegmentedAADOperation * operation
Definition: AESCCMCC26X4_s.h:177
size_t plaintextLength
Definition: AESCCMCC26X4_s.h:163
Definition: AESCCMCC26X4_s.h:180
size_t macLength
Definition: AESCCMCC26X4_s.h:156
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:182
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:146
AESCCM_Config * config
Definition: AESCCMCC26X4_s.h:123
void AESCCM_s_init(void)
Initializes the AES CCM secure driver.
Definition: AESCCMCC26X4_s.h:186
AESCCM_OperationType
Enum for the operation types supported by the driver.
Definition: AESCCM.h:1029
AESCCM_OperationUnion * operation
Definition: AESCCMCC26X4_s.h:108
AESCCM_OneStepOperation * operation
Definition: AESCCMCC26X4_s.h:147
Definition: AESCCMCC26X4_s.h:133
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:135
const AESCCM_Params * params
Definition: AESCCMCC26X4_s.h:130
SecureCallback_Object object
Definition: AESCCMCC26X4_s.h:104
AESCCM_Handle handle
Definition: AESCCMCC26X4_s.h:169
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:150
Definition: AESCCMCC26X4_s.h:159