![]() |
![]() |
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/ECDH.h>
#include <ti/drivers/spe/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.
Data Structures | |
struct | ECDH_s_SecureCallback |
struct | ECDH_s_ConstructMsg |
struct | ECDH_s_OpenMsg |
struct | ECDH_s_CallbackMsg |
struct | ECDH_s_CloseMsg |
struct | ECDH_s_GeneratePublicKeyMsg |
struct | ECDH_s_ComputeSharedSecretMsg |
struct | ECDH_s_CancelOperationMsg |
Macros | |
#define | ECDH_S_MSG_TYPE(index) (CRYPTO_S_MSG_TYPE_INDEX_ECDH | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index)))) |
#define | ECDH_S_MSG_TYPE_CONSTRUCT ECDH_S_MSG_TYPE(0U) |
#define | ECDH_S_MSG_TYPE_OPEN ECDH_S_MSG_TYPE(1U) |
#define | ECDH_S_MSG_TYPE_REGISTER_CALLBACK ECDH_S_MSG_TYPE(2U) |
#define | ECDH_S_MSG_TYPE_CLOSE ECDH_S_MSG_TYPE(3U) |
#define | ECDH_S_MSG_TYPE_GENERATE_PUBLIC_KEY ECDH_S_MSG_TYPE(4U) |
#define | ECDH_S_MSG_TYPE_COMPUTE_SHARED_SECRET ECDH_S_MSG_TYPE(5U) |
#define | ECDH_S_MSG_TYPE_CANCEL_OPERATION ECDH_S_MSG_TYPE(6U) |
#define | CONFIG_ECDH_S_CONFIG_POOL_SIZE 1 |
#define | ECDH_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_ECDH_COUNT + CONFIG_ECDH_S_CONFIG_POOL_SIZE) |
Functions | |
psa_status_t | ECDH_s_handlePsaMsg (psa_msg_t *msg) |
Handles PSA messages for ECDH secure driver. More... | |
void | ECDH_s_init (void) |
Initializes the ECDH secure driver. More... | |
#define ECDH_S_MSG_TYPE | ( | index | ) | (CRYPTO_S_MSG_TYPE_INDEX_ECDH | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index)))) |
#define ECDH_S_MSG_TYPE_CONSTRUCT ECDH_S_MSG_TYPE(0U) |
#define ECDH_S_MSG_TYPE_OPEN ECDH_S_MSG_TYPE(1U) |
#define ECDH_S_MSG_TYPE_REGISTER_CALLBACK ECDH_S_MSG_TYPE(2U) |
#define ECDH_S_MSG_TYPE_CLOSE ECDH_S_MSG_TYPE(3U) |
#define ECDH_S_MSG_TYPE_GENERATE_PUBLIC_KEY ECDH_S_MSG_TYPE(4U) |
#define ECDH_S_MSG_TYPE_COMPUTE_SHARED_SECRET ECDH_S_MSG_TYPE(5U) |
#define ECDH_S_MSG_TYPE_CANCEL_OPERATION ECDH_S_MSG_TYPE(6U) |
#define CONFIG_ECDH_S_CONFIG_POOL_SIZE 1 |
#define ECDH_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_ECDH_COUNT + CONFIG_ECDH_S_CONFIG_POOL_SIZE) |
psa_status_t ECDH_s_handlePsaMsg | ( | psa_msg_t * | msg | ) |
Handles PSA messages for ECDH secure driver.
[in] | msg | pointer to PSA message |
PSA_SUCCESS | if successful. |
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses. |
void ECDH_s_init | ( | void | ) |
Initializes the ECDH secure driver.