#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/AESCCM.h>
#include <ti/drivers/tfm/SecureCallback.h>
#include <third_party/tfm/interface/include/psa/error.h>
#include <third_party/tfm/interface/include/psa/service.h>
Go to the source code of this file.
§ AESCCM_S_MSG_TYPE_CONSTRUCT
§ AESCCM_S_MSG_TYPE_OPEN
§ AESCCM_S_MSG_TYPE_REGISTER_CALLBACK
§ AESCCM_S_MSG_TYPE_CLOSE
§ AESCCM_S_MSG_TYPE_ONE_STEP_ENCRYPT
§ AESCCM_S_MSG_TYPE_ONE_STEP_DECRYPT
§ AESCCM_S_MSG_TYPE_SETUP_ENCRYPT
§ AESCCM_S_MSG_TYPE_SETUP_DECRYPT
§ AESCCM_S_MSG_TYPE_SET_LENGTHS
§ AESCCM_S_MSG_TYPE_SET_NONCE
§ AESCCM_S_MSG_TYPE_ADD_AAD
§ AESCCM_S_MSG_TYPE_ADD_DATA
§ AESCCM_S_MSG_TYPE_FINALIZE_ENCRYPT
§ AESCCM_S_MSG_TYPE_FINALIZE_DECRYPT
§ AESCCM_S_MSG_TYPE_CANCEL_OPERATION
§ CONFIG_AESCCM_S_CONFIG_POOL_SIZE
#define CONFIG_AESCCM_S_CONFIG_POOL_SIZE 1 |
§ AESCCM_SECURE_CALLBACK_COUNT
§ AESCCM_s_oneStepEncryptFast()
Fast veneer to perform a single-step AESCCM encryption & authentication operation in polling mode without the overhead of PSA call.
- Note
- See AESCCM_oneStepEncrypt() for full description, parameters, and return values. PSA_ERROR_PROGRAMMER_ERROR is an additional return value.
- Return values
-
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses or handle is invalid. |
§ AESCCM_s_oneStepDecryptFast()
Fast veneer to perform a single-step AESCCM decryption & verification operation in polling mode without the overhead of PSA call.
- Note
- See AESCCM_oneStepDecrypt() for full description, parameters, and return values. PSA_ERROR_PROGRAMMER_ERROR is an additional return value.
- Return values
-
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses or handle is invalid. |
§ AESCCM_s_handlePsaMsg()
psa_status_t AESCCM_s_handlePsaMsg |
( |
psa_msg_t * |
msg | ) |
|
Handles PSA messages for AES CCM secure driver.
- Note
- This function should be called by secure partition thread only.
- Parameters
-
[in] | msg | pointer to PSA message |
- Return values
-
PSA_SUCCESS | if successful. |
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses. |
§ AESCCM_s_init()
void AESCCM_s_init |
( |
void |
| ) |
|
Initializes the AES CCM secure driver.
- Note
- This function should be called by secure partition thread only.